Class BukkitBlockAccessor
java.lang.Object
wtf.choco.veinminer.platform.world.BukkitBlockAccessor
- All Implemented Interfaces:
BlockAccessor
Implementation of
BlockAccessor for Bukkit Worlds.-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull BlockAccessorGet aBlockAccessorfor the givenWorld.@NotNull BlockStategetState(int x, int y, int z) Get theBlockStateat the given coordinates.@NotNull BlockTypegetType(int x, int y, int z) Get theBlockTypeat the given coordinates.@NotNull StringGet the name of the world being accessed by thisBlockAccessor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface wtf.choco.veinminer.platform.world.BlockAccessor
getState, getType
-
Method Details
-
getWorldName
Description copied from interface:BlockAccessorGet the name of the world being accessed by thisBlockAccessor.- Specified by:
getWorldNamein interfaceBlockAccessor- Returns:
- the world name
-
getType
Description copied from interface:BlockAccessorGet theBlockTypeat the given coordinates.- Specified by:
getTypein interfaceBlockAccessor- Parameters:
x- the x coordinatey- the y coordinatez- the z coordinate- Returns:
- the type
-
getState
Description copied from interface:BlockAccessorGet theBlockStateat the given coordinates.- Specified by:
getStatein interfaceBlockAccessor- Parameters:
x- the x coordinatey- the y coordinatez- the z coordinate- Returns:
- the state
-
forWorld
Get aBlockAccessorfor the givenWorld.- Parameters:
world- the world for which to get a block accessor- Returns:
- the block accessor
-