Record Class WorldGenAttemptDebugPayload
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.common.custom.WorldGenAttemptDebugPayload
- All Implemented Interfaces:
- CustomPacketPayload
public record WorldGenAttemptDebugPayload(BlockPos pos, float scale, float red, float green, float blue, float alpha)
extends Record
implements CustomPacketPayload
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final floatThe field for thealpharecord component.private final floatThe field for thebluerecord component.private final floatThe field for thegreenrecord component.static final ResourceLocationprivate final BlockPosThe field for theposrecord component.private final floatThe field for theredrecord component.private final floatThe field for thescalerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionWorldGenAttemptDebugPayload(BlockPos pos, float scale, float red, float green, float blue, float alpha) Creates an instance of aWorldGenAttemptDebugPayloadrecord class.WorldGenAttemptDebugPayload(FriendlyByteBuf p_295574_) 
- 
Method SummaryModifier and TypeMethodDescriptionfloatalpha()Returns the value of thealpharecord component.floatblue()Returns the value of thebluerecord component.final booleanIndicates whether some other object is "equal to" this one.floatgreen()Returns the value of thegreenrecord component.final inthashCode()Returns a hash code value for this object.id()pos()Returns the value of theposrecord component.floatred()Returns the value of theredrecord component.floatscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.voidwrite(FriendlyByteBuf p_295822_) 
- 
Field Details- 
posThe field for theposrecord component.
- 
scaleprivate final float scaleThe field for thescalerecord component.
- 
redprivate final float redThe field for theredrecord component.
- 
greenprivate final float greenThe field for thegreenrecord component.
- 
blueprivate final float blueThe field for thebluerecord component.
- 
alphaprivate final float alphaThe field for thealpharecord component.
- 
ID
 
- 
- 
Constructor Details- 
WorldGenAttemptDebugPayload
- 
WorldGenAttemptDebugPayloadpublic WorldGenAttemptDebugPayload(BlockPos pos, float scale, float red, float green, float blue, float alpha) Creates an instance of aWorldGenAttemptDebugPayloadrecord class.- Parameters:
- pos- the value for the- posrecord component
- scale- the value for the- scalerecord component
- red- the value for the- redrecord component
- green- the value for the- greenrecord component
- blue- the value for the- bluerecord component
- alpha- the value for the- alpharecord component
 
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- CustomPacketPayload
 
- 
id- Specified by:
- idin interface- CustomPacketPayload
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
posReturns the value of theposrecord component.- Returns:
- the value of the posrecord component
 
- 
scalepublic float scale()Returns the value of thescalerecord component.- Returns:
- the value of the scalerecord component
 
- 
redpublic float red()Returns the value of theredrecord component.- Returns:
- the value of the redrecord component
 
- 
greenpublic float green()Returns the value of thegreenrecord component.- Returns:
- the value of the greenrecord component
 
- 
bluepublic float blue()Returns the value of thebluerecord component.- Returns:
- the value of the bluerecord component
 
- 
alphapublic float alpha()Returns the value of thealpharecord component.- Returns:
- the value of the alpharecord component
 
 
-