Contents
Class HitboxCollision
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.hitboxcollision.HitboxCollision
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
Per-entity collision shape reference.
Legacy migration (temporary). This component used to persist HitboxCollisionConfigIndex,
a runtime asset-table index assigned at load time.
- Bug: the 0.5.5 asset-inheritance fix (
2effea41863) changed the asset load order, so an index saved under the old order now resolves to a different config. Hard/Soft collision was swapped on already-saved entities. - Fix: the versioned codec reads such legacy records, maps the old index to its stable config id via a table verified against a pre-0.5.5 boot, and re-saves as version 1 storing the id. The runtime index is re-resolved from the id, so the wire protocol is unchanged.
- Flag:
isMigrated()marks a record upgraded this way, so the player Setup system can re-derive it from config. - Removal: this migration can be dropped once pre-0.5.5 worlds have been re-saved.
-
Field Summary
FieldsFields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanstatic ComponentType<EntityStore, HitboxCollision> intbooleanvoidsetHitboxCollisionConfig(HitboxCollisionConfig hitboxCollisionConfig) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
VERSION
public static final int VERSION- See Also:
-
CODEC
-
-
Constructor Details
-
HitboxCollision
-
-
Method Details
-
getComponentType
-
getHitboxCollisionConfigIndex
public int getHitboxCollisionConfigIndex() -
getHitboxCollisionConfigId
-
isMigrated
public boolean isMigrated() -
setHitboxCollisionConfig
-
consumeNetworkOutdated
public boolean consumeNetworkOutdated() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-