Record Class FoliosPayloads.Advancements
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.FoliosPayloads.Advancements
- All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
- Enclosing class:
FoliosPayloads
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B,T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, FoliosPayloads.Advancements> static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<FoliosPayloads.Advancements> -
Constructor Summary
ConstructorsConstructorDescriptionAdvancements(boolean reset, List<net.minecraft.resources.Identifier> done, List<net.minecraft.resources.Identifier> undone) Creates an instance of aAdvancementsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.resources.Identifier> done()Returns the value of thedonerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanreset()Returns the value of theresetrecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<FoliosPayloads.Advancements> type()List<net.minecraft.resources.Identifier> undone()Returns the value of theundonerecord component.
-
Field Details
-
TYPE
public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<FoliosPayloads.Advancements> TYPE -
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, FoliosPayloads.Advancements> STREAM_CODEC
-
-
Constructor Details
-
Advancements
public Advancements(boolean reset, List<net.minecraft.resources.Identifier> done, List<net.minecraft.resources.Identifier> undone) Creates an instance of aAdvancementsrecord class.- Parameters:
reset- the value for theresetrecord componentdone- the value for thedonerecord componentundone- the value for theundonerecord component
-
-
Method Details
-
type
public net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<FoliosPayloads.Advancements> type()- Specified by:
typein interfacenet.minecraft.network.protocol.common.custom.CustomPacketPayload
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
reset
public boolean reset()Returns the value of theresetrecord component.- Returns:
- the value of the
resetrecord component
-
done
Returns the value of thedonerecord component.- Returns:
- the value of the
donerecord component
-
undone
Returns the value of theundonerecord component.- Returns:
- the value of the
undonerecord component
-