Class StaticTrimMaterial
java.lang.Object
com.github.retrooper.packetevents.protocol.item.trimmaterial.StaticTrimMaterial
- All Implemented Interfaces:
TrimMaterial
,MappedEntity
-
Constructor Summary
ConstructorDescriptionStaticTrimMaterial
(String assetName, ItemType ingredient, float itemModelIndex, Map<ArmorMaterial, String> overrideArmorMaterials, net.kyori.adventure.text.Component description) -
Method Summary
Modifier and TypeMethodDescriptionboolean
net.kyori.adventure.text.Component
int
getId
(ClientVersion version) float
getName()
int
hashCode()
boolean
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getName
in interfaceMappedEntity
-
getId
- Specified by:
getId
in interfaceMappedEntity
-
isRegistered
public boolean isRegistered()- Specified by:
isRegistered
in interfaceMappedEntity
-
getAssetName
- Specified by:
getAssetName
in interfaceTrimMaterial
-
getIngredient
- Specified by:
getIngredient
in interfaceTrimMaterial
-
getItemModelIndex
public float getItemModelIndex()- Specified by:
getItemModelIndex
in interfaceTrimMaterial
-
getOverrideArmorMaterials
- Specified by:
getOverrideArmorMaterials
in interfaceTrimMaterial
-
getDescription
public net.kyori.adventure.text.Component getDescription()- Specified by:
getDescription
in interfaceTrimMaterial
-
equals
-
hashCode
public int hashCode()
-