Record Class FabricWoodenHopperMod.HopperData
java.lang.Object
java.lang.Record
de.cech12.woodenhopper.FabricWoodenHopperMod.HopperData
- Enclosing class:
FabricWoodenHopperMod
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, FabricWoodenHopperMod.HopperData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanempty()Returns the value of theemptyrecord 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.
-
Field Details
-
CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, FabricWoodenHopperMod.HopperData> CODEC
-
-
Constructor Details
-
HopperData
public HopperData(boolean empty) Creates an instance of aHopperDatarecord class.- Parameters:
empty- the value for theemptyrecord 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. -
empty
public boolean empty()Returns the value of theemptyrecord component.- Returns:
- the value of the
emptyrecord component
-