Record Class DoughData.Toppings
java.lang.Object
java.lang.Record
com.petrolpark.compat.create.core.dough.DoughData.Toppings
- Enclosing class:
DoughData
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DoughData.Toppings> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, DoughData.Toppings> -
Constructor Summary
ConstructorsConstructorDescriptionToppings(List<DoughData.Toppings.Entry> toppings) Creates an instance of aToppingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanhas(net.minecraft.core.Holder<IDoughTopping> topping) final inthashCode()Returns a hash code value for this object.toppings()Returns the value of thetoppingsrecord component.final StringtoString()Returns a string representation of this record class.with(DoughData.Toppings.Entry topping) without(net.minecraft.core.Holder<IDoughTopping> topping)
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,DoughData.Toppings> STREAM_CODEC
-
-
Constructor Details
-
Toppings
Creates an instance of aToppingsrecord class.- Parameters:
toppings- the value for thetoppingsrecord component
-
-
Method Details
-
with
-
without
-
has
-
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). -
toppings
Returns the value of thetoppingsrecord component.- Returns:
- the value of the
toppingsrecord component
-