Package-level declarations
Types
Properties
Functions
Clears the CustomModelData.colors at the given index either removing the element (if it is at the end of the list) or setting it to DEFAULT_COLOR.
Clears the range from [offset
, offset + length
) in the CustomModelData.colors either removing the elements (if they are at the end of the list) or setting them to DEFAULT_COLOR.
Clears the CustomModelData.flags at the given index either removing the element (if it is at the end of the list) or setting it to DEFAULT_FLAG.
Clears the range from [offset
, offset + length
) in the CustomModelData.flags either removing the elements (if they are at the end of the list) or setting them to DEFAULT_FLAG.
Clears the CustomModelData.floats at the given index either removing the element (if it is at the end of the list) or setting it to DEFAULT_FLOAT.
Clears the range from [offset
, offset + length
) in the CustomModelData.floats either removing the elements (if they are at the end of the list) or setting them to DEFAULT_FLOAT.
Clears the CustomModelData.strings at the given index either removing the element (if it is at the end of the list) or setting it to DEFAULT_STRING.
Clears the range from [offset
, offset + length
) in the CustomModelData.strings either removing the elements (if they are at the end of the list) or setting them to DEFAULT_STRING.
More reliable function compared to the Spigot API function Material.isInteractable. From https://www.spigotmc.org/threads/check-if-a-block-is-interactable.535861/
Returns true
if this is neither null, nor an empty item stack, otherwise returns false
.
Returns true
if this is either null or an empty item stack, otherwise returns false
.
Sets the CustomModelData.colors at the given index to value. Fills all intermediary indices with DEFAULT_COLOR if necessary.
Overrides the range from [offset
, offset + patch.size
) in the CustomModelData.colors list with the values from patch. Fills all intermediary indices with DEFAULT_COLOR if necessary.
Sets the CustomModelData.flags at the given index to value. Fills all intermediary indices with DEFAULT_FLAG if necessary.
Overrides the range from [offset
, offset + patch.size
) in the CustomModelData.flags list with the values from patch. Fills all intermediary indices with DEFAULT_FLAG if necessary.
Sets the CustomModelData.floats at the given index to value. Fills all intermediary indices with DEFAULT_FLOAT if necessary.
Overrides the range from [offset
, offset + patch.size
) in the CustomModelData.floats list with the values from patch. Fills all intermediary indices with DEFAULT_FLOAT if necessary.
Sets the CustomModelData.strings at the given index to value. Fills all intermediary indices with DEFAULT_STRING if necessary.
Overrides the range from [offset
, offset + patch.size
) in the CustomModelData.strings list with the values from patch. Fills all intermediary indices with DEFAULT_STRING if necessary.
Returns null
if this isEmpty, otherwise returns this.