Record Class PhysicalActorState
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.movement.replay.PhysicalActorState
public record PhysicalActorState(net.minecraft.world.entity.Entity actor, net.minecraft.client.multiplayer.ClientLevel level, int id, UUID uuid, UUID nativeLifetime, net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot metadata, boolean physical, PhysicalActorState.CorrectionValues correction, net.raphimc.viabedrock.api.model.PlayerModeMessage.State mode, PhysicalState state)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPhysicalActorState(net.minecraft.world.entity.Entity actor, net.minecraft.client.multiplayer.ClientLevel level, int id, UUID uuid, UUID nativeLifetime, net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot metadata, boolean physical, PhysicalActorState.CorrectionValues correction, net.raphimc.viabedrock.api.model.PlayerModeMessage.State mode, PhysicalState state) Creates an instance of aPhysicalActorStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(net.raphimc.viabedrock.api.model.ActorMotionCommand command, net.minecraft.client.player.LocalPlayer player) booleanaccepts(net.raphimc.viabedrock.api.model.PlayerCorrection command, net.minecraft.client.player.LocalPlayer player) net.minecraft.world.entity.Entityactor()Returns the value of theactorrecord component.static PhysicalActorStatecapture(net.minecraft.world.entity.Entity actor) Returns the value of thecorrectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.net.minecraft.client.multiplayer.ClientLevellevel()Returns the value of thelevelrecord component.net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshotmetadata()Returns the value of themetadatarecord component.net.raphimc.viabedrock.api.model.PlayerModeMessage.Statemode()Returns the value of themoderecord component.Returns the value of thenativeLifetimerecord component.booleanphysical()Returns the value of thephysicalrecord component.static PhysicalActorStaterelationships(net.minecraft.world.entity.Entity actor) voidrestore()state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.booleanvalid(net.minecraft.client.player.LocalPlayer player)
-
Constructor Details
-
PhysicalActorState
public PhysicalActorState(net.minecraft.world.entity.Entity actor, net.minecraft.client.multiplayer.ClientLevel level, int id, UUID uuid, UUID nativeLifetime, net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot metadata, boolean physical, PhysicalActorState.CorrectionValues correction, net.raphimc.viabedrock.api.model.PlayerModeMessage.State mode, PhysicalState state) Creates an instance of aPhysicalActorStaterecord class.- Parameters:
actor- the value for theactorrecord componentlevel- the value for thelevelrecord componentid- the value for theidrecord componentuuid- the value for theuuidrecord componentnativeLifetime- the value for thenativeLifetimerecord componentmetadata- the value for themetadatarecord componentphysical- the value for thephysicalrecord componentcorrection- the value for thecorrectionrecord componentmode- the value for themoderecord componentstate- the value for thestaterecord component
-
-
Method Details
-
capture
-
relationships
-
accepts
public boolean accepts(net.raphimc.viabedrock.api.model.PlayerCorrection command, net.minecraft.client.player.LocalPlayer player) -
accepts
public boolean accepts(net.raphimc.viabedrock.api.model.ActorMotionCommand command, net.minecraft.client.player.LocalPlayer player) -
restore
public void restore() -
valid
public boolean valid(net.minecraft.client.player.LocalPlayer player) -
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. -
actor
public net.minecraft.world.entity.Entity actor()Returns the value of theactorrecord component.- Returns:
- the value of the
actorrecord component
-
level
public net.minecraft.client.multiplayer.ClientLevel level()Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
nativeLifetime
Returns the value of thenativeLifetimerecord component.- Returns:
- the value of the
nativeLifetimerecord component
-
metadata
public net.raphimc.viabedrock.api.model.NativeActorMessage.Snapshot metadata()Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
physical
public boolean physical()Returns the value of thephysicalrecord component.- Returns:
- the value of the
physicalrecord component
-
correction
Returns the value of thecorrectionrecord component.- Returns:
- the value of the
correctionrecord component
-
mode
public net.raphimc.viabedrock.api.model.PlayerModeMessage.State mode()Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-