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
-
Field Summary
Fields inherited from class emu.grasscutter.game.entity.GameEntity
id -
Constructor Summary
ConstructorsConstructorDescriptionEntityClientGadget(Scene scene, Player player, emu.grasscutter.net.proto.EvtCreateGadgetNotifyOuterClass.EvtCreateGadgetNotify notify) -
Method Summary
Methods inherited from class emu.grasscutter.game.entity.GameEntity
addFightProperty, damage, damage, getBlockId, getConfigId, getEntityType, getFightProperty, getGroupId, getId, getLastMoveReliableSeq, getLastMoveSceneTimeMs, getLifeState, getMetaModifiers, getMetaOverrideMap, getMotionInfo, getMotionState, getScene, getSpawnEntry, getWorld, heal, isAlive, setBlockId, setConfigId, setFightProperty, setGroupId, setLastMoveReliableSeq, setLastMoveSceneTimeMs, setMotionState, setSpawnEntry
-
Constructor Details
-
EntityClientGadget
-
-
Method Details
-
getGadgetId
public int getGadgetId()- Specified by:
getGadgetIdin classEntityBaseGadget
-
getOwner
-
getCampId
public int getCampId() -
getCampType
public int getCampType() -
getOwnerEntityId
public int getOwnerEntityId() -
getTargetEntityId
public int getTargetEntityId() -
isAsyncLoad
public boolean isAsyncLoad() -
onDeath
public void onDeath(int killerId) - Overrides:
onDeathin classEntityBaseGadget
-
getFightProperties
public it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap getFightProperties()- Specified by:
getFightPropertiesin classGameEntity
-
getPosition
- Specified by:
getPositionin classGameEntity
-
getRotation
- Specified by:
getRotationin classGameEntity
-
toProto
public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo toProto()- Specified by:
toProtoin classGameEntity
-