Class StaticTrimMaterial
java.lang.Object
com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
com.github.retrooper.packetevents.protocol.item.trimmaterial.StaticTrimMaterial
- All Implemented Interfaces:
TrimMaterial
,CopyableEntity<TrimMaterial>
,DeepComparableEntity
,MappedEntity
-
Field Summary
Fields inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
data
Fields inherited from interface com.github.retrooper.packetevents.protocol.item.trimmaterial.TrimMaterial
FALLBACK_ITEM_MODEL_INDEX
-
Constructor Summary
ConstructorDescriptionStaticTrimMaterial
(@Nullable TypesBuilderData data, String assetName, ItemType ingredient, float itemModelIndex, Map<ArmorMaterial, String> overrideArmorMaterials, net.kyori.adventure.text.Component description) StaticTrimMaterial
(@Nullable TypesBuilderData data, String assetName, ItemType ingredient, Map<ArmorMaterial, String> overrideArmorMaterials, net.kyori.adventure.text.Component description) StaticTrimMaterial
(String assetName, ItemType ingredient, float itemModelIndex, Map<ArmorMaterial, String> overrideArmorMaterials, net.kyori.adventure.text.Component description) StaticTrimMaterial
(String assetName, ItemType ingredient, Map<ArmorMaterial, String> overrideArmorMaterials, net.kyori.adventure.text.Component description) -
Method Summary
Modifier and TypeMethodDescriptioncopy
(@Nullable TypesBuilderData newData) boolean
deepEquals
(Object obj) int
net.kyori.adventure.text.Component
float
Removed in 1.21.4toString()
Methods inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
equals, getId, getName, getRegistryData, hashCode, isRegistered
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.retrooper.packetevents.protocol.mapper.MappedEntity
getId, getName, isRegistered
Methods inherited from interface com.github.retrooper.packetevents.protocol.item.trimmaterial.TrimMaterial
getArmorMaterialOverride
-
Constructor Details
-
StaticTrimMaterial
public StaticTrimMaterial(String assetName, ItemType ingredient, Map<ArmorMaterial, String> overrideArmorMaterials, net.kyori.adventure.text.Component description) -
StaticTrimMaterial
public StaticTrimMaterial(@Nullable @Nullable TypesBuilderData data, String assetName, ItemType ingredient, Map<ArmorMaterial, String> overrideArmorMaterials, net.kyori.adventure.text.Component description) -
StaticTrimMaterial
public StaticTrimMaterial(String assetName, ItemType ingredient, float itemModelIndex, Map<ArmorMaterial, String> overrideArmorMaterials, net.kyori.adventure.text.Component description) -
StaticTrimMaterial
public StaticTrimMaterial(@Nullable @Nullable TypesBuilderData data, String assetName, ItemType ingredient, float itemModelIndex, Map<ArmorMaterial, String> overrideArmorMaterials, net.kyori.adventure.text.Component description)
-
-
Method Details
-
copy
- Specified by:
copy
in interfaceCopyableEntity<TrimMaterial>
-
getAssetName
- Specified by:
getAssetName
in interfaceTrimMaterial
-
getIngredient
- Specified by:
getIngredient
in interfaceTrimMaterial
-
getItemModelIndex
public float getItemModelIndex()Description copied from interface:TrimMaterial
Removed in 1.21.4- Specified by:
getItemModelIndex
in interfaceTrimMaterial
-
getOverrideArmorMaterials
- Specified by:
getOverrideArmorMaterials
in interfaceTrimMaterial
-
getDescription
public net.kyori.adventure.text.Component getDescription()- Specified by:
getDescription
in interfaceTrimMaterial
-
deepEquals
- Specified by:
deepEquals
in interfaceDeepComparableEntity
-
deepHashCode
public int deepHashCode()- Specified by:
deepHashCode
in interfaceDeepComparableEntity
-
toString
- Overrides:
toString
in classAbstractMappedEntity
-