Record Class MapBanner
java.lang.Object
java.lang.Record
net.minecraft.world.level.saveddata.maps.MapBanner
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.static @Nullable MapBannerfromWorld(BlockGetter level, BlockPos pos) getId()final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.pos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pos
The field for theposrecord component. -
color
The field for thecolorrecord component. -
name
-
CODEC
-
-
Constructor Details
-
MapBanner
-
-
Method Details
-
fromWorld
-
getDecoration
-
getId
-
toString
-
hashCode
-
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). -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
name
-