Record Class MewMural.MuralPiece
java.lang.Object
java.lang.Record
net.darkhax.unownfont.common.MewMural.MuralPiece
- Enclosing class:
MewMural
public static record MewMural.MuralPiece(net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> id, int x, int y, @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> up, @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> down, @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> left, @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> right)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMuralPiece(net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> id, int x, int y, @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> up, @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> down, @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> left, @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> right) Creates an instance of aMuralPiecerecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> down()Returns the value of thedownrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> id()Returns the value of theidrecord component.@Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> left()Returns the value of theleftrecord component.@Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> right()Returns the value of therightrecord component.final StringtoString()Returns a string representation of this record class.@Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> up()Returns the value of theuprecord component.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Constructor Details
-
MuralPiece
public MuralPiece(net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> id, int x, int y, @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> up, @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> down, @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> left, @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> right) Creates an instance of aMuralPiecerecord class.- Parameters:
id- the value for theidrecord componentx- the value for thexrecord componenty- the value for theyrecord componentup- the value for theuprecord componentdown- the value for thedownrecord componentleft- the value for theleftrecord componentright- the value for therightrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
up
public @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> up()Returns the value of theuprecord component.- Returns:
- the value of the
uprecord component
-
down
public @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> down()Returns the value of thedownrecord component.- Returns:
- the value of the
downrecord component
-
left
public @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
right
public @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> right()Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-