Record Class WirelessTransmitterData
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.common.networking.WirelessTransmitterData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, WirelessTransmitterData> -
Constructor Summary
ConstructorsConstructorDescriptionWirelessTransmitterData(int range, boolean active) Creates an instance of aWirelessTransmitterDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()Returns the value of theactiverecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intrange()Returns the value of therangerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, WirelessTransmitterData> STREAM_CODEC
-
-
Constructor Details
-
WirelessTransmitterData
public WirelessTransmitterData(int range, boolean active) Creates an instance of aWirelessTransmitterDatarecord class.- Parameters:
range- the value for therangerecord componentactive- the value for theactiverecord 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 with thecomparemethod from their corresponding wrapper classes. -
range
public int range()Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
active
public boolean active()Returns the value of theactiverecord component.- Returns:
- the value of the
activerecord component
-