Package net.minestom.testing.util
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 TypeMethodDescriptionstatic @NotNull MockBlockGetterall(@NotNull net.minestom.server.instance.block.Block block) static @NotNull MockBlockGetterempty()@UnknownNullability net.minestom.server.instance.block.BlockgetBlock(int x, int y, int z, @NotNull net.minestom.server.instance.block.Block.Getter.Condition condition) voidsetBlock(int x, int y, int z, @NotNull net.minestom.server.instance.block.Block block) static @NotNull MockBlockGettersingle(@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, waitMethods inherited from interface net.minestom.server.instance.block.Block.Getter
getBlock, getBlock, getBlockMethods inherited from interface net.minestom.server.instance.block.Block.Setter
setBlock
-
Method Details
-
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:
getBlockin interfacenet.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:
setBlockin interfacenet.minestom.server.instance.block.Block.Setter
-