Record Class VanillaItemCodecs.StandingAndWall
java.lang.Object
java.lang.Record
net.rebel459.unified.api.registry.VanillaItemCodecs.StandingAndWall
- Enclosing class:
VanillaItemCodecs
public static record VanillaItemCodecs.StandingAndWall(net.minecraft.world.level.block.Block wallBlock, net.minecraft.core.Direction attachmentDirection)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<VanillaItemCodecs.StandingAndWall> -
Constructor Summary
ConstructorsConstructorDescriptionStandingAndWall(net.minecraft.world.level.block.Block wallBlock, net.minecraft.core.Direction attachmentDirection) Creates an instance of aStandingAndWallrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.DirectionReturns the value of theattachmentDirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.net.minecraft.world.level.block.BlockReturns the value of thewallBlockrecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
StandingAndWall
public StandingAndWall(net.minecraft.world.level.block.Block wallBlock, net.minecraft.core.Direction attachmentDirection) Creates an instance of aStandingAndWallrecord class.- Parameters:
wallBlock- the value for thewallBlockrecord componentattachmentDirection- the value for theattachmentDirectionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
wallBlock
public net.minecraft.world.level.block.Block wallBlock()Returns the value of thewallBlockrecord component.- Returns:
- the value of the
wallBlockrecord component
-
attachmentDirection
public net.minecraft.core.Direction attachmentDirection()Returns the value of theattachmentDirectionrecord component.- Returns:
- the value of the
attachmentDirectionrecord component
-