Package net.minecraft.block.entity
Record Class BannerPattern
java.lang.Object
java.lang.Record
net.minecraft.block.entity.BannerPattern
- Mappings:
Namespace Name official dlvintermediary net/minecraft/class_2582named net/minecraft/block/entity/BannerPattern
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static IdentifiergetSpriteId(RegistryKey<BannerPattern> pattern, boolean banner) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BannerPattern
public BannerPattern()Creates an instance of aBannerPatternrecord class.
-
-
Method Details
-
getSpriteId
- Mappings:
Namespace Name Mixin selector official aLdlv;a(Lajs;Z)Lajt;intermediary method_22536Lnet/minecraft/class_2582;method_22536(Lnet/minecraft/class_5321;Z)Lnet/minecraft/class_2960;named getSpriteIdLnet/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.
-