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
dataFields inherited from interface com.github.retrooper.packetevents.protocol.item.trimmaterial.TrimMaterial
FALLBACK_ITEM_MODEL_INDEX -
Constructor Summary
ConstructorsConstructorDescriptionStaticTrimMaterial(@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) booleandeepEquals(Object obj) intnet.kyori.adventure.text.ComponentfloatRemoved in 1.21.4toString()Methods inherited from class com.github.retrooper.packetevents.protocol.mapper.AbstractMappedEntity
equals, getId, getName, getRegistryData, hashCode, isRegisteredMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.retrooper.packetevents.protocol.mapper.MappedEntity
getId, getName, isRegisteredMethods 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:
copyin interfaceCopyableEntity<TrimMaterial>
-
getAssetName
- Specified by:
getAssetNamein interfaceTrimMaterial
-
getIngredient
- Specified by:
getIngredientin interfaceTrimMaterial
-
getItemModelIndex
public float getItemModelIndex()Description copied from interface:TrimMaterialRemoved in 1.21.4- Specified by:
getItemModelIndexin interfaceTrimMaterial
-
getOverrideArmorMaterials
- Specified by:
getOverrideArmorMaterialsin interfaceTrimMaterial
-
getDescription
public net.kyori.adventure.text.Component getDescription()- Specified by:
getDescriptionin interfaceTrimMaterial
-
deepEquals
- Specified by:
deepEqualsin interfaceDeepComparableEntity
-
deepHashCode
public int deepHashCode()- Specified by:
deepHashCodein interfaceDeepComparableEntity
-
toString
- Overrides:
toStringin classAbstractMappedEntity
-