Package emu.grasscutter.game.entity
Class EntityGadget
java.lang.Object
emu.grasscutter.game.entity.GameEntity
emu.grasscutter.game.entity.EntityBaseGadget
emu.grasscutter.game.entity.EntityGadget
-
Field Summary
Fields inherited from class emu.grasscutter.game.entity.GameEntity
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWorktopOptions(int[] options) it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMapintintgetState()it.unimi.dsi.fastutil.ints.IntSetvoidonDeath(int killerId) voidremoveWorktopOption(int option) voidsetGadgetId(int gadgetId) voidsetState(int state) emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfotoProto()Methods inherited from class emu.grasscutter.game.entity.GameEntity
addFightProperty, getBlockId, getConfigId, getEntityType, getFightProperty, getGroupId, getId, getLastMoveReliableSeq, getLastMoveSceneTimeMs, getLifeState, getMotionInfo, getMotionState, getScene, getSpawnEntry, getWorld, isAlive, setBlockId, setConfigId, setFightProperty, setGroupId, setLastMoveReliableSeq, setLastMoveSceneTimeMs, setMotionState, setSpawnEntry
-
Constructor Details
-
EntityGadget
-
-
Method Details
-
getGadgetData
-
getPosition
- Specified by:
getPositionin classGameEntity
-
getRotation
- Specified by:
getRotationin classGameEntity
-
getGadgetId
public int getGadgetId()- Specified by:
getGadgetIdin classEntityBaseGadget
-
setGadgetId
public void setGadgetId(int gadgetId) -
getState
public int getState() -
setState
public void setState(int state) -
getWorktopOptions
public it.unimi.dsi.fastutil.ints.IntSet getWorktopOptions() -
addWorktopOptions
public void addWorktopOptions(int[] options) -
removeWorktopOption
public void removeWorktopOption(int option) -
getFightProperties
public it.unimi.dsi.fastutil.ints.Int2FloatOpenHashMap getFightProperties()- Specified by:
getFightPropertiesin classGameEntity
-
onDeath
public void onDeath(int killerId) - Overrides:
onDeathin classEntityBaseGadget
-
toProto
public emu.grasscutter.net.proto.SceneEntityInfoOuterClass.SceneEntityInfo toProto()- Specified by:
toProtoin classGameEntity
-