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 BlockAccessor
Get aBlockAccessor
for the givenWorld
.@NotNull BlockState
getState
(int x, int y, int z) Get theBlockState
at the given coordinates.@NotNull BlockType
getType
(int x, int y, int z) Get theBlockType
at the given coordinates.@NotNull String
Get 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, wait
Methods inherited from interface wtf.choco.veinminer.platform.world.BlockAccessor
getState, getType
-
Method Details
-
getWorldName
Description copied from interface:BlockAccessor
Get the name of the world being accessed by thisBlockAccessor
.- Specified by:
getWorldName
in interfaceBlockAccessor
- Returns:
- the world name
-
getType
Description copied from interface:BlockAccessor
Get theBlockType
at the given coordinates.- Specified by:
getType
in interfaceBlockAccessor
- Parameters:
x
- the x coordinatey
- the y coordinatez
- the z coordinate- Returns:
- the type
-
getState
Description copied from interface:BlockAccessor
Get theBlockState
at the given coordinates.- Specified by:
getState
in interfaceBlockAccessor
- Parameters:
x
- the x coordinatey
- the y coordinatez
- the z coordinate- Returns:
- the state
-
forWorld
Get aBlockAccessor
for the givenWorld
.- Parameters:
world
- the world for which to get a block accessor- Returns:
- the block accessor
-