Class PartContainerState
java.lang.Object
alexiil.mc.lib.multipart.api.event.MultipartEvent
alexiil.mc.lib.multipart.api.event.PartContainerState
- Direct Known Subclasses:
PartContainerState.ChunkUnload
,PartContainerState.Invalidate
,PartContainerState.Remove
,PartContainerState.Validate
public abstract class PartContainerState extends MultipartEvent
Fired when the state of a container's block entity changes. Listen for subclasses, not this one!
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PartContainerState.ChunkUnload
static class
PartContainerState.Invalidate
Fired inBlockEntity.markRemoved()
static class
PartContainerState.Remove
Fired inAbstractBlock.onStateReplaced(BlockState, World, BlockPos, BlockState, boolean)
static class
PartContainerState.Validate
Fired inBlockEntity.cancelRemoval()
-
Field Summary
Fields Modifier and Type Field Description static PartContainerState.ChunkUnload
CHUNK_UNLOAD
Fired inIUnloadableBlockEntity.onChunkUnload()
static PartContainerState.Invalidate
INVALIDATE
Fired inBlockEntity.markRemoved()
static PartContainerState.Remove
REMOVE
Fired inAbstractBlock.onStateReplaced(BlockState, World, BlockPos, BlockState, boolean)
static PartContainerState.Validate
VALIDATE
Fired inBlockEntity.cancelRemoval()
-
Method Summary
-
Field Details
-
INVALIDATE
Fired inBlockEntity.markRemoved()
-
VALIDATE
Fired inBlockEntity.cancelRemoval()
-
CHUNK_UNLOAD
Fired inIUnloadableBlockEntity.onChunkUnload()
-
REMOVE
Fired inAbstractBlock.onStateReplaced(BlockState, World, BlockPos, BlockState, boolean)
-