Package com.ldtteam.structurize.util
Class BlockChangeData
java.lang.Object
com.ldtteam.structurize.util.BlockChangeData
Class which preserves a state change of a block and TE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.state.BlockStateGet the state of the storage.@Nullable net.minecraft.world.level.block.entity.BlockEntityGet the entity of the storage.net.minecraft.world.level.block.state.BlockStateGet the state of the storage.@Nullable net.minecraft.world.level.block.entity.BlockEntitygetPreTE()Get the entity of the storage.withPostState(net.minecraft.world.level.block.state.BlockState state) withPostTE(net.minecraft.world.level.block.entity.BlockEntity te) withPreState(net.minecraft.world.level.block.state.BlockState state) withPreTE(net.minecraft.world.level.block.entity.BlockEntity 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
-
withPostTE
-
withPreState
-
withPostState
-