Record Class FacingFixer.FacingMapping
java.lang.Object
java.lang.Record
com.ldtteam.structurize.blueprints.FacingFixer.FacingMapping
- All Implemented Interfaces:
Function<net.minecraft.core.Direction,net.minecraft.core.Direction>
- Enclosing class:
FacingFixer
public static record FacingFixer.FacingMapping(net.minecraft.core.Direction north, net.minecraft.core.Direction east, net.minecraft.core.Direction south, net.minecraft.core.Direction west, net.minecraft.core.Direction up, net.minecraft.core.Direction down)
extends Record
implements Function<net.minecraft.core.Direction,net.minecraft.core.Direction>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FacingFixer.FacingMappingstatic final FacingFixer.FacingMappingstatic final FacingFixer.FacingMapping -
Constructor Summary
ConstructorsConstructorDescriptionFacingMapping(net.minecraft.core.Direction north, net.minecraft.core.Direction east, net.minecraft.core.Direction south, net.minecraft.core.Direction west) FacingMapping(net.minecraft.core.Direction north, net.minecraft.core.Direction east, net.minecraft.core.Direction south, net.minecraft.core.Direction west, net.minecraft.core.Direction up, net.minecraft.core.Direction down) Creates an instance of aFacingMappingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.Directionapply(net.minecraft.core.Direction direction) net.minecraft.core.Directiondown()Returns the value of thedownrecord component.net.minecraft.core.Directioneast()Returns the value of theeastrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.core.Directionnorth()Returns the value of thenorthrecord component.net.minecraft.core.Directionsouth()Returns the value of thesouthrecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.core.Directionup()Returns the value of theuprecord component.net.minecraft.core.Directionwest()Returns the value of thewestrecord component.
-
Field Details
-
NORTH_EAST_AND_SOUTH_WEST
-
SOUTH_EAST_AND_NORTH_WEST
-
KEEP_ORIGINAL
-
-
Constructor Details
-
FacingMapping
public FacingMapping(net.minecraft.core.Direction north, net.minecraft.core.Direction east, net.minecraft.core.Direction south, net.minecraft.core.Direction west) -
FacingMapping
public FacingMapping(net.minecraft.core.Direction north, net.minecraft.core.Direction east, net.minecraft.core.Direction south, net.minecraft.core.Direction west, net.minecraft.core.Direction up, net.minecraft.core.Direction down) Creates an instance of aFacingMappingrecord class.- Parameters:
north- the value for thenorthrecord componenteast- the value for theeastrecord componentsouth- the value for thesouthrecord componentwest- the value for thewestrecord componentup- the value for theuprecord componentdown- the value for thedownrecord component
-
-
Method Details
-
apply
public net.minecraft.core.Direction apply(net.minecraft.core.Direction direction) -
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. All components in this record class are compared withObjects::equals(Object,Object). -
north
public net.minecraft.core.Direction north()Returns the value of thenorthrecord component.- Returns:
- the value of the
northrecord component
-
east
public net.minecraft.core.Direction east()Returns the value of theeastrecord component.- Returns:
- the value of the
eastrecord component
-
south
public net.minecraft.core.Direction south()Returns the value of thesouthrecord component.- Returns:
- the value of the
southrecord component
-
west
public net.minecraft.core.Direction west()Returns the value of thewestrecord component.- Returns:
- the value of the
westrecord component
-
up
public net.minecraft.core.Direction up()Returns the value of theuprecord component.- Returns:
- the value of the
uprecord component
-
down
public net.minecraft.core.Direction down()Returns the value of thedownrecord component.- Returns:
- the value of the
downrecord component
-