Skip to content

EntityStatMap

Package: com.hypixel.hytale.server.core.modules.entitystats

Type: class

Implements: Component

Constructors

java
public EntityStatMap()

Static Fields

NameType
VERSIONint
CODECBuilderCodec

Fields

NameType
unknownMap
valuesEntityStatValue[]
selfUpdatesInt2ObjectMap
selfStatValuesInt2ObjectMap
otherUpdatesInt2ObjectMap
isSelfNetworkOutdatedboolean
isNetworkOutdatedboolean

Static Methods

MethodReturns
getComponentType()ComponentType
makeInitChange(@Nonnull EntityStatValue value)EntityStatUpdate
toPacket(@Nullable Int2ObjectMap modifiers)Int2ObjectMap

Methods

MethodReturns
size()int
get(int index)EntityStatValue
get(String entityStat)EntityStatValue
update()void
getModifier(int index, String key)Modifier
putModifier(int index, String key, Modifier modifier)Modifier
putModifier(Predictable predictable, int index, String key, Modifier modifier)Modifier
removeModifier(int index, String key)Modifier
removeModifier(Predictable predictable, int index, String key)Modifier
setStatValue(int index, float newValue)float
setStatValue(Predictable predictable, int index, float newValue)float
addStatValue(int index, float amount)float
addStatValue(Predictable predictable, int index, float amount)float
subtractStatValue(int index, float amount)float
subtractStatValue(Predictable predictable, int index, float amount)float
minimizeStatValue(int index)float
minimizeStatValue(Predictable predictable, int index)float
maximizeStatValue(int index)float
maximizeStatValue(Predictable predictable, int index)float
resetStatValue(int index)float
resetStatValue(Predictable predictable, int index)float
getSelfUpdates()Int2ObjectMap
getSelfStatValues()Int2ObjectMap
consumeSelfUpdates()Int2ObjectMap
clearUpdates()void
consumeOtherUpdates()Int2ObjectMap
updatesToProtocol(@Nonnull Int2ObjectMap localUpdates)Int2ObjectOpenHashMap
createInitUpdate(boolean all)Int2ObjectMap
consumeSelfNetworkOutdated()boolean
consumeNetworkOutdated()boolean
addInitChange(int index, @Nonnull EntityStatValue value)void
addChange(Predictable predictable, int index, @Nonnull EntityStatOp op, float previousValue, float value)void
addChange(Predictable predictable, int index, @Nonnull EntityStatOp op, float previousValue, float value, Map modifierMap)void
addChange(Predictable predictable, int index, EntityStatOp op, float previousValue, String key, @Nullable Modifier modifier)void
tryMergeUpdate(@Nonnull List updates, @Nonnull EntityStatOp op, float value, @Nullable Map modifierMap, boolean isPredictable)boolean
processStatChanges(Predictable predictable, @Nonnull Int2FloatMap entityStats, ValueType valueType, @Nonnull ChangeStatBehaviour changeStatBehaviour)void
toString()String
clone()EntityStatMap
EntityStatUpdate(EntityStatOp.Init, false, value.get()return new

Unofficial documentation · Any questions? Found a mistake? Have something you want documented? Join the Discord server at the top and let us know in #hytale!