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

    Constructors
    Constructor
    Description
    SpongeWorldNativeAccess(WeakReference<net.minecraft.server.level.ServerLevel> world)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.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

      public SpongeWorldNativeAccess(WeakReference<net.minecraft.server.level.ServerLevel> world)
  • Method Details

    • setCurrentSideEffectSet

      public void setCurrentSideEffectSet(com.sk89q.worldedit.util.SideEffectSet sideEffectSet)
      Specified by:
      setCurrentSideEffectSet in interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.sk89q.worldedit.internal.wna.WorldNativeAccess<net.minecraft.world.level.chunk.LevelChunk,net.minecraft.world.level.block.state.BlockState,net.minecraft.core.BlockPos>