HyCodeYourTale
classpublicPriority 1

Player

com.hypixel.hytale.server.core.entity.entities.Player

extends LivingEntity

implements CommandSender, PermissionHolder, MetricProvider

50

Methods

50

Public Methods

13

Fields

1

Constructors

Constants

BuilderCodec<Player>CODEC= BuilderCodec.builder(Player.class, Player::new, LivingEntity.CODEC) .append(PLAYER_CONFIG_D...
intDEFAULT_VIEW_RADIUS_CHUNKS= 6
longMAX_TELEPORT_INVULNERABILITY_MILLIS= 10000L
intMAX_VELOCITY_SAMPLE_COUNT= 2
MetricsRegistry<Player>METRICS_REGISTRY= new MetricsRegistry<Player>() .register("Uuid", Entity::getUuid, Codec.UUID_STRING) ....
KeyedCodec<PlayerConfigData>PLAYER_CONFIG_DATA= new KeyedCodec<>("PlayerData", PlayerConfigData.CODEC)
longRESPAWN_INVULNERABILITY_TIME_NANOS= TimeUnit.MILLISECONDS.toNanos(3000L)
intVELOCITY_SAMPLE_LENGTH= 12

Constructors

public
Player()

Methods

Public Methods (50)

public
boolean canApplyItemStackPenalties(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor)
@Override
public
boolean canDecreaseItemStackDurability(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor)
@Override
public
void configTriggerBlockProcessing(boolean triggers, boolean blockDamage, CollisionResultComponent collisionResultComponent)
public
void copyFrom(Player oldPlayerComponent)
public
boolean equals(Object o)
@Override
public
int getClientViewRadius()
publicstatic
ComponentType<EntityStore, Player> getComponentType()
@Nonnull
public
String getDisplayName()
@Override
public
GameMode getGameMode()
public
HotbarManager getHotbarManager()
@Nonnull
public
HudManager getHudManager()
@Nonnull
public
int getMountEntityId()
public
PageManager getPageManager()
@Nonnull
public
PlayerConfigData getPlayerConfigData()
@Nonnull
public
PacketHandler getPlayerConnection()
public
PlayerRef getPlayerRef()
public
long getSinceLastSpawnNanos()
public
int getViewRadius()
public
WindowManager getWindowManager()
@Nonnull
public
WorldMapTracker getWorldMapTracker()
@Nonnull
public
void handleClientReady(boolean forced)
public
boolean hasPermission(String id)
@Override
public
boolean hasPermission(String id, boolean def)
@Override
public
boolean hasSpawnProtection()
public
int hashCode()
@Override
public
void init(UUID uuid, PlayerRef playerRef)
publicstatic
void initGameMode(Ref<EntityStore> playerRef, ComponentAccessor<EntityStore> componentAccessor)
public
boolean isFirstSpawn()
public
boolean isOverrideBlockPlacementRestrictions()
public
boolean isWaitingForClientReady()
public
void markNeedsSave()
@Override
public
void moveTo(Ref<EntityStore> ref, double locX, double locY, double locZ, ComponentAccessor<EntityStore> componentAccessor)
@Override
public
void processVelocitySample(double dt, Vector3d position, Velocity velocity)
public
boolean remove()
@Override
public
void resetManagers(Holder<EntityStore> holder)
public
void resetVelocity(Velocity velocity)
public
CompletableFuture<Void> saveConfig(World world, Holder<EntityStore> holder)
@Nonnull
public
void sendInventory()
public
void sendMessage(Message message)
@Override
public
void setClientViewRadius(int clientViewRadius)
public
void setFirstSpawn(boolean firstSpawn)
publicstatic
void setGameMode(Ref<EntityStore> playerRef, GameMode gameMode, ComponentAccessor<EntityStore> componentAccessor)
public
Inventory setInventory(Inventory inventory)
@Nonnull@Override
public
void setLastSpawnTimeNanos(long lastSpawnTimeNanos)
public
void setMountEntityId(int mountEntityId)
public
void setNetworkId(int id)
public
void startClientReadyTimeout()
public
MetricResults toMetricResults()
@Nonnull@Override
public
String toString()
@Nonnull@Override
public
void unloadFromWorld()
@Override

Fields

Public Fields (2)

publicboolean executeBlockDamage
publicboolean executeTriggers

Protected Fields (1)

protectedlong lastSpawnTimeNanos

Private/Package Fields (10)

privateint clientViewRadius
privateboolean firstSpawn
privateGameMode gameMode
privateint mountEntityId
privateboolean overrideBlockPlacementRestrictions
privatePlayerRef playerRef
privateint velocitySampleCount
privateint velocitySampleIndex
privatedouble[][] velocitySampleWeights
privatedouble[] velocitySamples

Related Classes