Record Class CableConnections
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.common.networking.CableConnections
public record CableConnections(boolean north, boolean east, boolean south, boolean west, boolean up, boolean down)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCableConnections(boolean north, boolean east, boolean south, boolean west, boolean up, boolean down) Creates an instance of aCableConnectionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandown()Returns the value of thedownrecord component.booleaneast()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.booleanisConnected(net.minecraft.core.Direction direction) static CableConnectionsload(net.minecraft.world.level.storage.ValueInput input) booleannorth()Returns the value of thenorthrecord component.booleansouth()Returns the value of thesouthrecord component.voidstore(net.minecraft.nbt.CompoundTag tag) voidstore(net.minecraft.world.level.storage.ValueOutput output) static voidstripTag(net.minecraft.nbt.CompoundTag tag) final StringtoString()Returns a string representation of this record class.booleanup()Returns the value of theuprecord component.booleanwest()Returns the value of thewestrecord component.
-
Field Details
-
NONE
-
-
Constructor Details
-
CableConnections
public CableConnections(boolean north, boolean east, boolean south, boolean west, boolean up, boolean down) Creates an instance of aCableConnectionsrecord 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
-
isConnected
public boolean isConnected(net.minecraft.core.Direction direction) -
load
-
store
public void store(net.minecraft.world.level.storage.ValueOutput output) -
store
public void store(net.minecraft.nbt.CompoundTag tag) -
stripTag
public static void stripTag(net.minecraft.nbt.CompoundTag tag) -
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 with thecomparemethod from their corresponding wrapper classes. -
north
public boolean north()Returns the value of thenorthrecord component.- Returns:
- the value of the
northrecord component
-
east
public boolean east()Returns the value of theeastrecord component.- Returns:
- the value of the
eastrecord component
-
south
public boolean south()Returns the value of thesouthrecord component.- Returns:
- the value of the
southrecord component
-
west
public boolean west()Returns the value of thewestrecord component.- Returns:
- the value of the
westrecord component
-
up
public boolean up()Returns the value of theuprecord component.- Returns:
- the value of the
uprecord component
-
down
public boolean down()Returns the value of thedownrecord component.- Returns:
- the value of the
downrecord component
-