Class BlockChangeData

java.lang.Object
com.ldtteam.structurize.util.BlockChangeData

public class BlockChangeData extends Object
Class which preserves a state change of a block and TE
  • Constructor Details

    • BlockChangeData

      public BlockChangeData()
      Constructor for the storage.
  • Method Details

    • getPreState

      public net.minecraft.world.level.block.state.BlockState getPreState()
      Get the state of the storage.
      Returns:
      the BlockState.
    • getPostState

      public net.minecraft.world.level.block.state.BlockState getPostState()
      Get the state of the storage.
      Returns:
      the BlockState.
    • getPreTE

      @Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity getPreTE()
      Get the entity of the storage.
      Returns:
      the TileEntity.
    • getPostTE

      @Nullable public @Nullable net.minecraft.world.level.block.entity.BlockEntity getPostTE()
      Get the entity of the storage.
      Returns:
      the TileEntity.
    • withPreTE

      public BlockChangeData withPreTE(net.minecraft.world.level.block.entity.BlockEntity te)
    • withPostTE

      public BlockChangeData withPostTE(net.minecraft.world.level.block.entity.BlockEntity te)
    • withPreState

      public BlockChangeData withPreState(net.minecraft.world.level.block.state.BlockState state)
    • withPostState

      public BlockChangeData withPostState(net.minecraft.world.level.block.state.BlockState state)