Record Class ClientboundTickingStepPacket
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundTickingStepPacket
- All Implemented Interfaces:
- Packet<ClientGamePacketListener>
public record ClientboundTickingStepPacket(int tickSteps)
extends Record
implements Packet<ClientGamePacketListener>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intThe field for thetickStepsrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionClientboundTickingStepPacket(int tickSteps) Creates an instance of aClientboundTickingStepPacketrecord class.ClientboundTickingStepPacket(FriendlyByteBuf p_309129_) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static ClientboundTickingStepPacketfrom(TickRateManager p_308913_) voidhandle(ClientGamePacketListener p_309086_) final inthashCode()Returns a hash code value for this object.intReturns the value of thetickStepsrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(FriendlyByteBuf p_309179_) Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.PacketisSkippable, nextProtocol
- 
Field Details- 
tickStepsprivate final int tickStepsThe field for thetickStepsrecord component.
 
- 
- 
Constructor Details- 
ClientboundTickingStepPacket
- 
ClientboundTickingStepPacketpublic ClientboundTickingStepPacket(int tickSteps) Creates an instance of aClientboundTickingStepPacketrecord class.- Parameters:
- tickSteps- the value for the- tickStepsrecord component
 
 
- 
- 
Method Details- 
from
- 
write- Specified by:
- writein interface- Packet<ClientGamePacketListener>
 
- 
handle- Specified by:
- handlein interface- Packet<ClientGamePacketListener>
 
- 
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. All components in this record class are compared with '=='.
- 
tickStepspublic int tickSteps()Returns the value of thetickStepsrecord component.- Returns:
- the value of the tickStepsrecord component
 
 
-