Interface EntityNBTCompatibilityHandler
- All Known Implementing Classes:
Pre13HangingCompatibilityHandler
public interface EntityNBTCompatibilityHandler
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
isAffectedEntity
(EntityType type, CompoundTag entityTag) Deprecated.default org.enginehub.linbus.tree.LinCompoundTag
updateNbt
(EntityType type, org.enginehub.linbus.tree.LinCompoundTag entityTag) Given an entity type and data, update the data if needed.default CompoundTag
updateNBT
(EntityType type, CompoundTag entityTag) Deprecated.
-
Method Details
-
isAffectedEntity
Deprecated.this was never used, just return the same tag fromupdateNbt(EntityType, LinCompoundTag)
if it's not affectedCheck if this is an entity affected by this handler. -
updateNBT
Deprecated. -
updateNbt
@NonAbstractForCompatibility(delegateName="updateNBT", delegateParams={EntityType.class,CompoundTag.class}) default org.enginehub.linbus.tree.LinCompoundTag updateNbt(EntityType type, org.enginehub.linbus.tree.LinCompoundTag entityTag) Given an entity type and data, update the data if needed.- Parameters:
type
- the entity typeentityTag
- the entity tag- Returns:
- the updated tag, or the same tag if no update was needed
- API Note:
- This must be overridden by new subclasses. See
NonAbstractForCompatibility
for details
-
updateNbt(EntityType, LinCompoundTag)
if it's not affected