PlayerUtil

public class PlayerUtil

Class PlayerUtil. Provides playerutil functionality for the Hytale server.

java.lang.Object > PlayerUtil

Field Summary

store

final Store store

Field store.

entityViewerComponent

final EntityTrackerSystems.EntityViewer entityViewerComponent

Field entityViewerComponent.

targetPlayerRef

final Ref targetPlayerRef

Field targetPlayerRef.

targetPlayerRefComponent

final PlayerRef targetPlayerRefComponent

Field targetPlayerRefComponent.

targetRef

final Ref targetRef

Field targetRef.

world

final World world

Field world.

targetHiddenPlayersManager

final HiddenPlayersManager targetHiddenPlayersManager

Field targetHiddenPlayersManager.

playerSkinComponent

final PlayerSkinComponent playerSkinComponent

Field playerSkinComponent.

newModel

final Model newModel

Field newModel.

Method Detail

forEachPlayerThatCanSeeEntity

static void forEachPlayerThatCanSeeEntity (@Nonnull final Ref ref, @Nonnull final TriConsumer, PlayerRef, ComponentAccessor> consumer, @Nonnull final ComponentAccessor componentAccessor)

Method forEachPlayerThatCanSeeEntity.

Parameters:
@Nonnull final Ref ref
@Nonnull final TriConsumer, PlayerRef, ComponentAccessor> consumer
@Nonnull final ComponentAccessor componentAccessor

broadcastMessageToPlayers

static void broadcastMessageToPlayers (@Nullable final UUID sourcePlayerUuid, @Nonnull final Message message, @Nonnull final Store store)

Method broadcastMessageToPlayers.

Parameters:
@Nullable final UUID sourcePlayerUuid
@Nonnull final Message message
@Nonnull final Store store

broadcastPacketToPlayers

static void broadcastPacketToPlayers (@Nonnull final ComponentAccessor componentAccessor, @Nonnull final Packet packet)

Method broadcastPacketToPlayers.

Parameters:
@Nonnull final ComponentAccessor componentAccessor
@Nonnull final Packet packet

broadcastPacketToPlayersNoCache

static void broadcastPacketToPlayersNoCache (@Nonnull final ComponentAccessor componentAccessor, @Nonnull final Packet packet)

Method broadcastPacketToPlayersNoCache.

Parameters:
@Nonnull final ComponentAccessor componentAccessor
@Nonnull final Packet packet

resetPlayerModel

static void resetPlayerModel (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method resetPlayerModel.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor

ModelComponent

public new ModelComponent (newModel)

Method ModelComponent.

Parameters:
newModel newModel