Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- NULLABLE_BIT_FIELD_SIZE
- FIXED_BLOCK_SIZE
- VARIABLE_FIELD_COUNT
- VARIABLE_BLOCK_START
- MAX_SIZE
- slot
- cooldown
- cost
- costType
- weapons
- weaponTagIndexes
- abilityKeywordIndexes
- requiresAnyAbilityKeywordIndexes
- requiresAllAbilityKeywordIndexes
- excludesAnyAbilityKeywordIndexes
- onHitEffects
- attributes
- attributeModifiers
- cast
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getSlot(MemorySegment)
- getSlot(MemorySegment, int)
- getCooldown(MemorySegment)
- getCooldown(MemorySegment, int)
- getCost(MemorySegment)
- getCost(MemorySegment, int)
- getCostType(MemorySegment)
- getCostType(MemorySegment, int)
- getWeapons(MemorySegment)
- getWeapons(MemorySegment, int)
- getWeaponTagIndexes(MemorySegment)
- getWeaponTagIndexes(MemorySegment, int)
- getAbilityKeywordIndexes(MemorySegment)
- getAbilityKeywordIndexes(MemorySegment, int)
- getRequiresAnyAbilityKeywordIndexes(MemorySegment)
- getRequiresAnyAbilityKeywordIndexes(MemorySegment, int)
- getRequiresAllAbilityKeywordIndexes(MemorySegment)
- getRequiresAllAbilityKeywordIndexes(MemorySegment, int)
- getExcludesAnyAbilityKeywordIndexes(MemorySegment)
- getExcludesAnyAbilityKeywordIndexes(MemorySegment, int)
- getOnHitEffects(MemorySegment)
- getOnHitEffects(MemorySegment, int)
- getAttributes(MemorySegment)
- getAttributes(MemorySegment, int)
- getAttributeModifiers(MemorySegment)
- getAttributeModifiers(MemorySegment, int)
- getCast(MemorySegment)
- getCast(MemorySegment, int)
- hasWeapons(MemorySegment, int)
- hasWeaponTagIndexes(MemorySegment, int)
- hasAbilityKeywordIndexes(MemorySegment, int)
- hasRequiresAnyAbilityKeywordIndexes(MemorySegment, int)
- hasRequiresAllAbilityKeywordIndexes(MemorySegment, int)
- hasExcludesAnyAbilityKeywordIndexes(MemorySegment, int)
- hasOnHitEffects(MemorySegment, int)
- hasAttributes(MemorySegment, int)
- hasAttributeModifiers(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class ItemAbility
java.lang.Object
com.hypixel.hytale.protocol.ItemAbility
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionItemAbility(AbilitySlot slot, float cooldown, float cost, AbilityCostType costType, String[] weapons, int[] weaponTagIndexes, int[] abilityKeywordIndexes, int[] requiresAnyAbilityKeywordIndexes, int[] requiresAllAbilityKeywordIndexes, int[] excludesAnyAbilityKeywordIndexes, String[] onHitEffects, Map<String, Float> attributes, Map<String, Modifier[]> attributeModifiers, int cast) ItemAbility(ItemAbility other) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic int[]static int[]getAbilityKeywordIndexes(MemorySegment mem, int offset) getAttributeModifiers(MemorySegment mem, int offset) getAttributes(MemorySegment mem, int offset) static intgetCast(MemorySegment mem) static intgetCast(MemorySegment mem, int offset) static floatgetCooldown(MemorySegment mem) static floatgetCooldown(MemorySegment mem, int offset) static floatgetCost(MemorySegment mem) static floatgetCost(MemorySegment mem, int offset) static AbilityCostTypegetCostType(MemorySegment mem) static AbilityCostTypegetCostType(MemorySegment mem, int offset) static int[]static int[]getExcludesAnyAbilityKeywordIndexes(MemorySegment mem, int offset) static String[]static String[]getOnHitEffects(MemorySegment mem, int offset) static int[]static int[]getRequiresAllAbilityKeywordIndexes(MemorySegment mem, int offset) static int[]static int[]getRequiresAnyAbilityKeywordIndexes(MemorySegment mem, int offset) static AbilitySlotgetSlot(MemorySegment mem) static AbilitySlotgetSlot(MemorySegment mem, int offset) static String[]getWeapons(MemorySegment mem) static String[]getWeapons(MemorySegment mem, int offset) static int[]static int[]getWeaponTagIndexes(MemorySegment mem, int offset) static booleanhasAbilityKeywordIndexes(MemorySegment mem, int offset) static booleanhasAttributeModifiers(MemorySegment mem, int offset) static booleanhasAttributes(MemorySegment mem, int offset) static booleanhasExcludesAnyAbilityKeywordIndexes(MemorySegment mem, int offset) inthashCode()static booleanhasOnHitEffects(MemorySegment mem, int offset) static booleanhasRequiresAllAbilityKeywordIndexes(MemorySegment mem, int offset) static booleanhasRequiresAnyAbilityKeywordIndexes(MemorySegment mem, int offset) static booleanhasWeapons(MemorySegment mem, int offset) static booleanhasWeaponTagIndexes(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static ItemAbilitytoObject(MemorySegment mem) static ItemAbilitytoObject(MemorySegment mem, int offset) static ItemAbilitytoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one ItemAbility and reports the end of its encoding through the cursor.
-
Field Details
-
NULLABLE_BIT_FIELD_SIZE
public static final int NULLABLE_BIT_FIELD_SIZE- See Also:
-
FIXED_BLOCK_SIZE
public static final int FIXED_BLOCK_SIZE- See Also:
-
VARIABLE_FIELD_COUNT
public static final int VARIABLE_FIELD_COUNT- See Also:
-
VARIABLE_BLOCK_START
public static final int VARIABLE_BLOCK_START- See Also:
-
MAX_SIZE
public static final int MAX_SIZE- See Also:
-
slot
-
cooldown
public float cooldown -
cost
public float cost -
costType
-
weapons
-
weaponTagIndexes
@Nullable public int[] weaponTagIndexes -
abilityKeywordIndexes
@Nullable public int[] abilityKeywordIndexes -
requiresAnyAbilityKeywordIndexes
@Nullable public int[] requiresAnyAbilityKeywordIndexes -
requiresAllAbilityKeywordIndexes
@Nullable public int[] requiresAllAbilityKeywordIndexes -
excludesAnyAbilityKeywordIndexes
@Nullable public int[] excludesAnyAbilityKeywordIndexes -
onHitEffects
-
attributes
-
attributeModifiers
-
cast
public int cast
-
-
Constructor Details
-
ItemAbility
public ItemAbility() -
ItemAbility
public ItemAbility(@Nonnull AbilitySlot slot, float cooldown, float cost, @Nonnull AbilityCostType costType, @Nullable String[] weapons, @Nullable int[] weaponTagIndexes, @Nullable int[] abilityKeywordIndexes, @Nullable int[] requiresAnyAbilityKeywordIndexes, @Nullable int[] requiresAllAbilityKeywordIndexes, @Nullable int[] excludesAnyAbilityKeywordIndexes, @Nullable String[] onHitEffects, @Nullable Map<String, Float> attributes, @Nullable Map<String, Modifier[]> attributeModifiers, int cast) -
ItemAbility
-
-
Method Details
-
requireBounds
Checks that the fixed block fits. The per-field getters read without their own bound check, so call this once before reading fields out of an untrusted segment. -
getSlot
-
getSlot
-
getCooldown
-
getCooldown
-
getCost
-
getCost
-
getCostType
-
getCostType
-
getWeapons
-
getWeapons
-
getWeaponTagIndexes
-
getWeaponTagIndexes
-
getAbilityKeywordIndexes
-
getAbilityKeywordIndexes
-
getRequiresAnyAbilityKeywordIndexes
-
getRequiresAnyAbilityKeywordIndexes
-
getRequiresAllAbilityKeywordIndexes
-
getRequiresAllAbilityKeywordIndexes
-
getExcludesAnyAbilityKeywordIndexes
-
getExcludesAnyAbilityKeywordIndexes
-
getOnHitEffects
-
getOnHitEffects
-
getAttributes
-
getAttributes
-
getAttributeModifiers
-
getAttributeModifiers
@Nullable public static Map<String, Modifier[]> getAttributeModifiers(MemorySegment mem, int offset) -
getCast
-
getCast
-
hasWeapons
-
hasWeaponTagIndexes
-
hasAbilityKeywordIndexes
-
hasRequiresAnyAbilityKeywordIndexes
-
hasRequiresAllAbilityKeywordIndexes
-
hasExcludesAnyAbilityKeywordIndexes
-
hasOnHitEffects
-
hasAttributes
-
hasAttributeModifiers
-
toObject
-
toObject
-
toObject
Decodes one ItemAbility and reports the end of its encoding through the cursor. The variable block is decoded in field order against a running position, and each offset slot must name that position, so the fields decoded are the bytes walked. -
serialize
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-