Record Class SpawnGaiaGuardianPacket
java.lang.Object
java.lang.Record
vazkii.botania.network.clientbound.SpawnGaiaGuardianPacket
- All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
-
Nested Class Summary
Nested ClassesNested 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 net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<SpawnGaiaGuardianPacket> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, SpawnGaiaGuardianPacket> -
Constructor Summary
ConstructorsConstructorDescriptionSpawnGaiaGuardianPacket(net.minecraft.network.protocol.game.ClientboundAddEntityPacket inner, int playerCount, boolean hardMode, net.minecraft.core.BlockPos source, UUID bossInfoId) Creates an instance of aSpawnGaiaGuardianPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebossInfoIdrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanhardMode()Returns the value of thehardModerecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.network.protocol.game.ClientboundAddEntityPacketinner()Returns the value of theinnerrecord component.intReturns the value of theplayerCountrecord component.net.minecraft.core.BlockPossource()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<SpawnGaiaGuardianPacket> type()
-
Field Details
-
ID
public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<SpawnGaiaGuardianPacket> ID -
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,SpawnGaiaGuardianPacket> STREAM_CODEC
-
-
Constructor Details
-
SpawnGaiaGuardianPacket
public SpawnGaiaGuardianPacket(net.minecraft.network.protocol.game.ClientboundAddEntityPacket inner, int playerCount, boolean hardMode, net.minecraft.core.BlockPos source, UUID bossInfoId) Creates an instance of aSpawnGaiaGuardianPacketrecord class.- Parameters:
inner- the value for theinnerrecord componentplayerCount- the value for theplayerCountrecord componenthardMode- the value for thehardModerecord componentsource- the value for thesourcerecord componentbossInfoId- the value for thebossInfoIdrecord component
-
-
Method Details
-
type
public net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<SpawnGaiaGuardianPacket> 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 '=='. -
inner
public net.minecraft.network.protocol.game.ClientboundAddEntityPacket inner()Returns the value of theinnerrecord component.- Returns:
- the value of the
innerrecord component
-
playerCount
public int playerCount()Returns the value of theplayerCountrecord component.- Returns:
- the value of the
playerCountrecord component
-
hardMode
public boolean hardMode()Returns the value of thehardModerecord component.- Returns:
- the value of the
hardModerecord component
-
source
public net.minecraft.core.BlockPos source()Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
bossInfoId
Returns the value of thebossInfoIdrecord component.- Returns:
- the value of the
bossInfoIdrecord component
-