Class SpongeWorldNativeAccess
java.lang.Object
com.sk89q.worldedit.sponge.internal.SpongeWorldNativeAccess
- All Implemented Interfaces:
com.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
public class SpongeWorldNativeAccess
extends Object
implements com.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,net.minecraft.world.level.block.state.BlockState,net.minecraft.core.BlockPos>
-
Constructor Summary
ConstructorsConstructorDescriptionSpongeWorldNativeAccess
(WeakReference<net.minecraft.server.level.ServerLevel> world) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.state.BlockState
getBlockState
(net.minecraft.world.level.chunk.LevelChunk chunk, net.minecraft.core.BlockPos position) net.minecraft.world.level.chunk.LevelChunk
getChunk
(int x, int z) net.minecraft.core.BlockPos
getPosition
(int x, int y, int z) net.minecraft.world.level.block.state.BlockState
getValidBlockForPosition
(net.minecraft.world.level.block.state.BlockState block, net.minecraft.core.BlockPos position) boolean
isChunkTicking
(net.minecraft.world.level.chunk.LevelChunk chunk) void
markBlockChanged
(net.minecraft.world.level.chunk.LevelChunk chunk, net.minecraft.core.BlockPos position) void
notifyBlockUpdate
(net.minecraft.world.level.chunk.LevelChunk chunk, net.minecraft.core.BlockPos position, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState) void
notifyNeighbors
(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState) void
onBlockStateChange
(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState) net.minecraft.world.level.block.state.BlockState
setBlockState
(net.minecraft.world.level.chunk.LevelChunk chunk, net.minecraft.core.BlockPos position, net.minecraft.world.level.block.state.BlockState state) void
setCurrentSideEffectSet
(com.sk89q.worldedit.util.SideEffectSet sideEffectSet) net.minecraft.world.level.block.state.BlockState
toNative
(com.sk89q.worldedit.world.block.BlockState state) void
updateBlock
(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState) void
updateLightingForBlock
(net.minecraft.core.BlockPos position) void
updateNeighbors
(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int recursionLimit) boolean
updateTileEntity
(net.minecraft.core.BlockPos position, org.enginehub.linbus.tree.LinCompoundTag tag) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.internal.wna.WorldNativeAccess
applySideEffects, markAndNotifyBlock, setBlock
-
Constructor Details
-
SpongeWorldNativeAccess
-
-
Method Details
-
setCurrentSideEffectSet
public void setCurrentSideEffectSet(com.sk89q.worldedit.util.SideEffectSet sideEffectSet) - Specified by:
setCurrentSideEffectSet
in interfacecom.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
-
getChunk
public net.minecraft.world.level.chunk.LevelChunk getChunk(int x, int z) - Specified by:
getChunk
in interfacecom.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
-
toNative
public net.minecraft.world.level.block.state.BlockState toNative(com.sk89q.worldedit.world.block.BlockState state) - Specified by:
toNative
in interfacecom.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
-
getBlockState
public net.minecraft.world.level.block.state.BlockState getBlockState(net.minecraft.world.level.chunk.LevelChunk chunk, net.minecraft.core.BlockPos position) - Specified by:
getBlockState
in interfacecom.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
-
setBlockState
@Nullable public net.minecraft.world.level.block.state.BlockState setBlockState(net.minecraft.world.level.chunk.LevelChunk chunk, net.minecraft.core.BlockPos position, net.minecraft.world.level.block.state.BlockState state) - Specified by:
setBlockState
in interfacecom.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
-
getValidBlockForPosition
public net.minecraft.world.level.block.state.BlockState getValidBlockForPosition(net.minecraft.world.level.block.state.BlockState block, net.minecraft.core.BlockPos position) - Specified by:
getValidBlockForPosition
in interfacecom.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
-
getPosition
public net.minecraft.core.BlockPos getPosition(int x, int y, int z) - Specified by:
getPosition
in interfacecom.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
-
updateLightingForBlock
public void updateLightingForBlock(net.minecraft.core.BlockPos position) - Specified by:
updateLightingForBlock
in interfacecom.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
-
updateTileEntity
public boolean updateTileEntity(net.minecraft.core.BlockPos position, org.enginehub.linbus.tree.LinCompoundTag tag) - Specified by:
updateTileEntity
in interfacecom.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
-
notifyBlockUpdate
public void notifyBlockUpdate(net.minecraft.world.level.chunk.LevelChunk chunk, net.minecraft.core.BlockPos position, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState) - Specified by:
notifyBlockUpdate
in interfacecom.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
-
isChunkTicking
public boolean isChunkTicking(net.minecraft.world.level.chunk.LevelChunk chunk) - Specified by:
isChunkTicking
in interfacecom.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
-
markBlockChanged
public void markBlockChanged(net.minecraft.world.level.chunk.LevelChunk chunk, net.minecraft.core.BlockPos position) - Specified by:
markBlockChanged
in interfacecom.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
-
notifyNeighbors
public void notifyNeighbors(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState) - Specified by:
notifyNeighbors
in interfacecom.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
-
updateBlock
public void updateBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState) - Specified by:
updateBlock
in interfacecom.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
-
updateNeighbors
public void updateNeighbors(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState, int recursionLimit) - Specified by:
updateNeighbors
in interfacecom.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
-
onBlockStateChange
public void onBlockStateChange(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState oldState, net.minecraft.world.level.block.state.BlockState newState) - Specified by:
onBlockStateChange
in interfacecom.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,
net.minecraft.world.level.block.state.BlockState, net.minecraft.core.BlockPos>
-