Package emu.grasscutter.game.entity
Class EntityBaseGadget
java.lang.Object
emu.grasscutter.game.entity.GameEntity
emu.grasscutter.game.entity.EntityBaseGadget
- Direct Known Subclasses:
EntityClientGadget,EntityGadget,EntityItem,EntityPlatform,EntityVehicle
-
Field Summary
FieldsFields inherited from class emu.grasscutter.game.entity.GameEntity
id -
Constructor Summary
ConstructorsConstructorDescriptionEntityBaseGadget(Scene scene) EntityBaseGadget(Scene scene, Position position, Position rotation) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfillFightProps(ConfigGadget configGadget) abstract intvoidonDeath(int killerId) Called when this entity diesMethods inherited from class emu.grasscutter.game.entity.GameEntity
addAllFightPropsToEntityInfo, addFightProperty, damage, damage, getBlockId, getConfigId, getEntityType, getFightProperties, 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, toProto
-
Field Details
-
position
-
rotation
-
-
Constructor Details
-
EntityBaseGadget
-
EntityBaseGadget
-
-
Method Details
-
getGadgetId
public abstract int getGadgetId() -
onDeath
public void onDeath(int killerId) Description copied from class:GameEntityCalled when this entity dies- Overrides:
onDeathin classGameEntity- Parameters:
killerId- Entity id of the entity that killed this entity
-
fillFightProps
-
getPosition
- Specified by:
getPositionin classGameEntity
-
getRotation
- Specified by:
getRotationin classGameEntity
-