Class StaticTrimMaterial
java.lang.Object
com.github.retrooper.packetevents.protocol.item.trimmaterial.StaticTrimMaterial
- All Implemented Interfaces:
TrimMaterial,MappedEntity
-
Constructor Summary
ConstructorsConstructorDescriptionStaticTrimMaterial(String assetName, ItemType ingredient, float itemModelIndex, Map<ArmorMaterial, String> overrideArmorMaterials, net.kyori.adventure.text.Component description) -
Method Summary
Modifier and TypeMethodDescriptionbooleannet.kyori.adventure.text.ComponentintgetId(ClientVersion version) floatgetName()inthashCode()booleanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.retrooper.packetevents.protocol.item.trimmaterial.TrimMaterial
getArmorMaterialOverride
-
Constructor Details
-
StaticTrimMaterial
public StaticTrimMaterial(String assetName, ItemType ingredient, float itemModelIndex, Map<ArmorMaterial, String> overrideArmorMaterials, net.kyori.adventure.text.Component description)
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceMappedEntity
-
getId
- Specified by:
getIdin interfaceMappedEntity
-
isRegistered
public boolean isRegistered()- Specified by:
isRegisteredin interfaceMappedEntity
-
getAssetName
- Specified by:
getAssetNamein interfaceTrimMaterial
-
getIngredient
- Specified by:
getIngredientin interfaceTrimMaterial
-
getItemModelIndex
public float getItemModelIndex()- Specified by:
getItemModelIndexin interfaceTrimMaterial
-
getOverrideArmorMaterials
- Specified by:
getOverrideArmorMaterialsin interfaceTrimMaterial
-
getDescription
public net.kyori.adventure.text.Component getDescription()- Specified by:
getDescriptionin interfaceTrimMaterial
-
equals
-
hashCode
public int hashCode()
-