Package net.minestom.server.item.armor
Interface TrimMaterial
- All Superinterfaces:
ProtocolObject
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final @NotNull BinaryTagSerializer
<DynamicRegistry.Key<TrimMaterial>> static final NetworkBuffer.Type
<DynamicRegistry.Key<TrimMaterial>> -
Method Summary
Modifier and TypeMethodDescription@NotNull String
static @NotNull TrimMaterial.Builder
builder()
static @NotNull TrimMaterial
create
(@NotNull String assetName, @NotNull Material ingredient, float itemModelIndex, @NotNull Map<String, String> overrideArmorMaterials, @NotNull Component description) static @NotNull DynamicRegistry
<TrimMaterial> Creates a new registry for trim materials, loading the vanilla trim materials.@NotNull Component
@NotNull Material
float
registry()
Returns the raw registry entry of this trim, only if the trim is a vanilla trim.
-
Field Details
-
NETWORK_TYPE
-
NBT_TYPE
-
-
Method Details
-
create
-
builder
-
createDefaultRegistry
Creates a new registry for trim materials, loading the vanilla trim materials.
- See Also:
-
assetName
-
ingredient
-
itemModelIndex
float itemModelIndex() -
overrideArmorMaterials
-
description
-
registry
Returns the raw registry entry of this trim, only if the trim is a vanilla trim. Otherwise, returns null.- Specified by:
registry
in interfaceProtocolObject
-