Record Class MaterialAssetGroup
java.lang.Object
java.lang.Record
net.minecraft.world.item.equipment.trim.MaterialAssetGroup
public record MaterialAssetGroup(MaterialAssetGroup.AssetInfo base, Map<ResourceKey<EquipmentAsset>,MaterialAssetGroup.AssetInfo> overrides)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MaterialAssetGroup
private final MaterialAssetGroup.AssetInfo
The field for thebase
record component.static final MaterialAssetGroup
static final MaterialAssetGroup
static final MaterialAssetGroup
static final MaterialAssetGroup
static final MaterialAssetGroup
static final MaterialAssetGroup
static final com.mojang.serialization.MapCodec
<MaterialAssetGroup> static final MaterialAssetGroup
private final Map
<ResourceKey<EquipmentAsset>, MaterialAssetGroup.AssetInfo> The field for theoverrides
record component.static final MaterialAssetGroup
static final MaterialAssetGroup
static final MaterialAssetGroup
static final String
static final StreamCodec
<io.netty.buffer.ByteBuf, MaterialAssetGroup> -
Constructor Summary
ConstructorsConstructorDescriptionMaterialAssetGroup
(MaterialAssetGroup.AssetInfo base, Map<ResourceKey<EquipmentAsset>, MaterialAssetGroup.AssetInfo> overrides) Creates an instance of aMaterialAssetGroup
record class. -
Method Summary
Modifier and TypeMethodDescriptionassetId
(ResourceKey<EquipmentAsset> p_399733_) base()
Returns the value of thebase
record component.static MaterialAssetGroup
static MaterialAssetGroup
create
(String p_399717_, Map<ResourceKey<EquipmentAsset>, String> p_399565_) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theoverrides
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
base
The field for thebase
record component. -
overrides
The field for theoverrides
record component. -
SEPARATOR
- See Also:
-
MAP_CODEC
-
STREAM_CODEC
-
QUARTZ
-
IRON
-
NETHERITE
-
REDSTONE
-
COPPER
-
GOLD
-
EMERALD
-
DIAMOND
-
LAPIS
-
AMETHYST
-
RESIN
-
-
Constructor Details
-
MaterialAssetGroup
public MaterialAssetGroup(MaterialAssetGroup.AssetInfo base, Map<ResourceKey<EquipmentAsset>, MaterialAssetGroup.AssetInfo> overrides) Creates an instance of aMaterialAssetGroup
record class.- Parameters:
base
- the value for thebase
record componentoverrides
- the value for theoverrides
record component
-
-
Method Details
-
create
-
create
public static MaterialAssetGroup create(String p_399717_, Map<ResourceKey<EquipmentAsset>, String> p_399565_) -
assetId
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
base
Returns the value of thebase
record component.- Returns:
- the value of the
base
record component
-
overrides
Returns the value of theoverrides
record component.- Returns:
- the value of the
overrides
record component
-