Class MockBlockGetter

java.lang.Object
net.minestom.testing.util.MockBlockGetter
All Implemented Interfaces:
net.minestom.server.instance.block.Block.Getter, net.minestom.server.instance.block.Block.Setter

public class MockBlockGetter extends Object implements net.minestom.server.instance.block.Block.Getter, net.minestom.server.instance.block.Block.Setter
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minestom.server.instance.block.Block.Getter

    net.minestom.server.instance.block.Block.Getter.Condition
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull MockBlockGetter
    all(@NotNull net.minestom.server.instance.block.Block block)
     
    static @NotNull MockBlockGetter
     
    @UnknownNullability net.minestom.server.instance.block.Block
    getBlock(int x, int y, int z, @NotNull net.minestom.server.instance.block.Block.Getter.Condition condition)
     
    void
    setBlock(int x, int y, int z, @NotNull net.minestom.server.instance.block.Block block)
     
    static @NotNull MockBlockGetter
    single(@NotNull net.minestom.server.instance.block.Block block)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minestom.server.instance.block.Block.Getter

    getBlock, getBlock, getBlock

    Methods inherited from interface net.minestom.server.instance.block.Block.Setter

    setBlock
  • Method Details

    • empty

      @NotNull public static @NotNull MockBlockGetter empty()
    • single

      @NotNull public static @NotNull MockBlockGetter single(@NotNull @NotNull net.minestom.server.instance.block.Block block)
    • all

      @NotNull public static @NotNull MockBlockGetter all(@NotNull @NotNull net.minestom.server.instance.block.Block block)
    • getBlock

      public @UnknownNullability net.minestom.server.instance.block.Block getBlock(int x, int y, int z, @NotNull @NotNull net.minestom.server.instance.block.Block.Getter.Condition condition)
      Specified by:
      getBlock in interface net.minestom.server.instance.block.Block.Getter
    • setBlock

      public void setBlock(int x, int y, int z, @NotNull @NotNull net.minestom.server.instance.block.Block block)
      Specified by:
      setBlock in interface net.minestom.server.instance.block.Block.Setter