Class LocalPlayer

All Implemented Interfaces:
CommandSource, Attackable, EntityAccess, Nameable, ICapabilityProvider, ICapabilityProviderImpl<Entity>, ICapabilitySerializable<CompoundTag>, IForgeEntity, IForgeLivingEntity, IForgePlayer, INBTSerializable<CompoundTag>

public class LocalPlayer extends AbstractClientPlayer
  • Field Details

    • LOGGER

      public static final org.slf4j.Logger LOGGER
    • POSITION_REMINDER_INTERVAL

      private static final int POSITION_REMINDER_INTERVAL
      See Also:
    • WATER_VISION_MAX_TIME

      private static final int WATER_VISION_MAX_TIME
      See Also:
    • WATER_VISION_QUICK_TIME

      private static final int WATER_VISION_QUICK_TIME
      See Also:
    • WATER_VISION_QUICK_PERCENT

      private static final float WATER_VISION_QUICK_PERCENT
      See Also:
    • SUFFOCATING_COLLISION_CHECK_SCALE

      private static final double SUFFOCATING_COLLISION_CHECK_SCALE
      See Also:
    • MINOR_COLLISION_ANGLE_THRESHOLD_RADIAN

      private static final double MINOR_COLLISION_ANGLE_THRESHOLD_RADIAN
      See Also:
    • DEFAULT_SNEAKING_MOVEMENT_FACTOR

      private static final float DEFAULT_SNEAKING_MOVEMENT_FACTOR
      See Also:
    • connection

      public final ClientPacketListener connection
    • stats

      private final StatsCounter stats
    • recipeBook

      private final ClientRecipeBook recipeBook
    • ambientSoundHandlers

      private final List<AmbientSoundHandler> ambientSoundHandlers
    • permissionLevel

      private int permissionLevel
    • xLast

      private double xLast
    • yLast1

      private double yLast1
    • zLast

      private double zLast
    • yRotLast

      private float yRotLast
    • xRotLast

      private float xRotLast
    • lastOnGround

      private boolean lastOnGround
    • crouching

      private boolean crouching
    • wasShiftKeyDown

      private boolean wasShiftKeyDown
    • wasSprinting

      private boolean wasSprinting
    • positionReminder

      private int positionReminder
    • flashOnSetHealth

      private boolean flashOnSetHealth
    • serverBrand

      @Nullable private String serverBrand
    • input

      public Input input
    • minecraft

      protected final Minecraft minecraft
    • sprintTriggerTime

      protected int sprintTriggerTime
    • yBob

      public float yBob
    • xBob

      public float xBob
    • yBobO

      public float yBobO
    • xBobO

      public float xBobO
    • jumpRidingTicks

      private int jumpRidingTicks
    • jumpRidingScale

      private float jumpRidingScale
    • portalTime

      public float portalTime
    • oPortalTime

      public float oPortalTime
    • startedUsingItem

      private boolean startedUsingItem
    • usingItemHand

      @Nullable private InteractionHand usingItemHand
    • handsBusy

      private boolean handsBusy
    • autoJumpEnabled

      private boolean autoJumpEnabled
    • autoJumpTime

      private int autoJumpTime
    • wasFallFlying

      private boolean wasFallFlying
    • waterVisionTime

      private int waterVisionTime
    • showDeathScreen

      private boolean showDeathScreen
  • Constructor Details

  • Method Details