Package net.minecraft.world.level.entity
Class PersistentEntitySectionManager.Callback
java.lang.Object
net.minecraft.world.level.entity.PersistentEntitySectionManager.Callback
- All Implemented Interfaces:
EntityInLevelCallback
- Enclosing class:
PersistentEntitySectionManager<T extends EntityAccess>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate EntitySection
<T> private long
private final T
private final Entity
Fields inherited from interface net.minecraft.world.level.entity.EntityInLevelCallback
NULL
-
Constructor Summary
ConstructorsConstructorDescriptionCallback
(T pEntity, long pCurrentSectionKey, EntitySection<T> pCurrentSection) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onMove()
void
onRemove
(Entity.RemovalReason pReason) private void
updateStatus
(Visibility pOldVisibility, Visibility pNewVisibility)
-
Field Details
-
entity
-
realEntity
-
currentSectionKey
private long currentSectionKey -
currentSection
-
-
Constructor Details
-
Callback
Callback(T pEntity, long pCurrentSectionKey, EntitySection<T> pCurrentSection)
-
-
Method Details
-
onMove
public void onMove()- Specified by:
onMove
in interfaceEntityInLevelCallback
-
updateStatus
-
onRemove
- Specified by:
onRemove
in interfaceEntityInLevelCallback
-