Package net.ixdarklord.folios.internal
Record Class GuidePayloads.Structure
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.GuidePayloads.Structure
- All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
- Enclosing class:
GuidePayloads
-
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 extends net.minecraft.network.FriendlyByteBuf>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B extends net.minecraft.network.FriendlyByteBuf,T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, GuidePayloads.Structure> static final intstatic final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<GuidePayloads.Structure> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblocks()Returns the value of theblocksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceLocationid()Returns the value of theidrecord component.List<net.minecraft.world.level.block.state.BlockState> palette()Returns the value of thepaletterecord component.intstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<GuidePayloads.Structure> type()
-
Field Details
-
FOUND
public static final int FOUND- See Also:
-
MISSING
public static final int MISSING- See Also:
-
TOO_LARGE
public static final int TOO_LARGE- See Also:
-
TYPE
public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<GuidePayloads.Structure> TYPE -
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,GuidePayloads.Structure> STREAM_CODEC
-
-
Constructor Details
-
Structure
public Structure(net.minecraft.resources.ResourceLocation id, int status, List<net.minecraft.world.level.block.state.BlockState> palette, List<Integer> blocks) Creates an instance of aStructurerecord class.- Parameters:
id- the value for theidrecord componentstatus- the value for thestatusrecord componentpalette- the value for thepaletterecord componentblocks- the value for theblocksrecord component
-
-
Method Details
-
type
public net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<GuidePayloads.Structure> type()- Specified by:
typein interfacenet.minecraft.network.protocol.common.custom.CustomPacketPayload
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public net.minecraft.resources.ResourceLocation id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
status
public int status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
palette
Returns the value of thepaletterecord component.- Returns:
- the value of the
paletterecord component
-
blocks
Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-