Class OtherClientPlayerEntity

All Implemented Interfaces:
Attackable, CommandOutput, Nameable, EntityLike

@Environment(CLIENT) public class OtherClientPlayerEntity extends AbstractClientPlayerEntity
Represents a player entity that is present on the client but is not the client's own player.
Mappings:
Namespace Name
official fiz
intermediary net/minecraft/class_745
named net/minecraft/client/network/OtherClientPlayerEntity
  • Field Details

    • clientVelocity

      private Vec3d clientVelocity
      Mappings:
      Namespace Name Mixin selector
      official g Lfiz;g:Leei;
      intermediary field_42907 Lnet/minecraft/class_745;field_42907:Lnet/minecraft/class_243;
      named clientVelocity Lnet/minecraft/client/network/OtherClientPlayerEntity;clientVelocity:Lnet/minecraft/util/math/Vec3d;
    • velocityLerpDivisor

      private int velocityLerpDivisor
      Mappings:
      Namespace Name Mixin selector
      official cl Lfiz;cl:I
      intermediary field_42908 Lnet/minecraft/class_745;field_42908:I
      named velocityLerpDivisor Lnet/minecraft/client/network/OtherClientPlayerEntity;velocityLerpDivisor:I
  • Constructor Details

    • OtherClientPlayerEntity

      public OtherClientPlayerEntity(ClientWorld world, com.mojang.authlib.GameProfile profile)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfiv;<init>(Lfew;Lcom/mojang/authlib/GameProfile;)V
      intermediary <init> Lnet/minecraft/class_742;<init>(Lnet/minecraft/class_638;Lcom/mojang/authlib/GameProfile;)V
      named <init> Lnet/minecraft/client/network/AbstractClientPlayerEntity;<init>(Lnet/minecraft/client/world/ClientWorld;Lcom/mojang/authlib/GameProfile;)V
  • Method Details

    • shouldRender

      public boolean shouldRender(double distance)
      Overrides:
      shouldRender in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Lbfj;a(D)Z
      intermediary method_5640 Lnet/minecraft/class_1297;method_5640(D)Z
      named shouldRender Lnet/minecraft/entity/Entity;shouldRender(D)Z
    • damage

      public boolean damage(DamageSource source, float amount)
      Applies a damage to this entity. The exact implementation differs between subclasses.

      LivingEntity has health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.

      Some entities like ItemEntity also have health value, which the overridden method decrements. There also exist several entities, like EndCrystalEntity, where any damage discards the entity (perhaps with an explosion).

      If this is overridden, it must check the result of Entity.isInvulnerableTo(net.minecraft.entity.damage.DamageSource) and return early.

      Overrides:
      damage in class PlayerEntity
      Returns:
      whether the entity was actually damaged
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbfj;a(Lben;F)Z
      intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class AbstractClientPlayerEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lbfj;l()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official b_ Lbfz;b_()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
    • setVelocityClient

      public void setVelocityClient(double x, double y, double z)
      Overrides:
      setVelocityClient in class Entity
      Mappings:
      Namespace Name Mixin selector
      official l Lbfj;l(DDD)V
      intermediary method_5750 Lnet/minecraft/class_1297;method_5750(DDD)V
      named setVelocityClient Lnet/minecraft/entity/Entity;setVelocityClient(DDD)V
    • updatePose

      protected void updatePose()
      Overrides:
      updatePose in class PlayerEntity
      Mappings:
      Namespace Name Mixin selector
      official fH Lbyo;fH()V
      intermediary method_7318 Lnet/minecraft/class_1657;method_7318()V
      named updatePose Lnet/minecraft/entity/player/PlayerEntity;updatePose()V
    • sendMessage

      public void sendMessage(Text message)
      Sends a system message.
      Specified by:
      sendMessage in interface CommandOutput
      Overrides:
      sendMessage in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Ldr;a(Lsw;)V
      intermediary method_43496 Lnet/minecraft/class_2165;method_43496(Lnet/minecraft/class_2561;)V
      named sendMessage Lnet/minecraft/server/command/CommandOutput;sendMessage(Lnet/minecraft/text/Text;)V