Package net.minecraft.block.entity
Record Class BannerPattern
java.lang.Object
java.lang.Record
net.minecraft.block.entity.BannerPattern
- Mappings:
Namespace Name official dlv
intermediary net/minecraft/class_2582
named net/minecraft/block/entity/BannerPattern
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.static Identifier
getSpriteId
(RegistryKey<BannerPattern> pattern, boolean banner) final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BannerPattern
public BannerPattern()Creates an instance of aBannerPattern
record class.
-
-
Method Details
-
getSpriteId
- Mappings:
Namespace Name Mixin selector official a
Ldlv;a(Lajs;Z)Lajt;
intermediary method_22536
Lnet/minecraft/class_2582;method_22536(Lnet/minecraft/class_5321;Z)Lnet/minecraft/class_2960;
named getSpriteId
Lnet/minecraft/block/entity/BannerPattern;getSpriteId(Lnet/minecraft/registry/RegistryKey;Z)Lnet/minecraft/util/Identifier;
-
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.
-