Package emu.grasscutter.game.entity
Class EntityClientGadget
java.lang.Object
emu.grasscutter.game.entity.GameEntity
emu.grasscutter.game.entity.EntityBaseGadget
emu.grasscutter.game.entity.EntityClientGadget
- Direct Known Subclasses:
EntitySolarIsotomaClientGadget
-
Field Summary
Fields inherited from class emu.grasscutter.game.entity.EntityBaseGadget
position, rotationFields inherited from class emu.grasscutter.game.entity.GameEntity
id -
Constructor Summary
ConstructorsConstructorDescriptionEntityClientGadget(Scene scene, Player player, EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify notify) -
Method Summary
Methods inherited from class emu.grasscutter.game.entity.EntityBaseGadget
fillFightProps, getPosition, getRotationMethods inherited from class emu.grasscutter.game.entity.GameEntity
addAllFightPropsToEntityInfo, addFightProperty, damage, damage, getBlockId, getConfigId, getEntityType, getFightProperty, getGroupId, getId, getLastMoveReliableSeq, getLastMoveSceneTimeMs, getLifeState, getMetaModifiers, getMetaOverrideMap, getMotionInfo, getMotionState, getScene, getSpawnEntry, getWorld, hasFightProperty, heal, isAlive, isLockHP, move, onCreate, onInteract, onRemoved, setBlockId, setConfigId, setFightProperty, setFightProperty, setGroupId, setLastMoveReliableSeq, setLastMoveSceneTimeMs, setLockHP, setMotionState, setSpawnEntry
-
Constructor Details
-
EntityClientGadget
public EntityClientGadget(Scene scene, Player player, EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify notify)
-
-
Method Details
-
onDeath
public void onDeath(int killerId) Description copied from class:GameEntityCalled when this entity dies- Overrides:
onDeathin classEntityBaseGadget- Parameters:
killerId- Entity id of the entity that killed this entity
-
getFightProperties
public it.unimi.dsi.fastutil.ints.Int2FloatMap getFightProperties()- Specified by:
getFightPropertiesin classGameEntity
-
toProto
- Specified by:
toProtoin classGameEntity
-
getOwner
-
getGadgetId
public int getGadgetId()- Specified by:
getGadgetIdin classEntityBaseGadget
-
getCampId
public int getCampId() -
getCampType
public int getCampType() -
getOwnerEntityId
public int getOwnerEntityId() -
getTargetEntityId
public int getTargetEntityId() -
isAsyncLoad
public boolean isAsyncLoad() -
getOriginalOwnerEntityId
public int getOriginalOwnerEntityId()
-