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.
broadcastMessageToPlayers
static
void
broadcastMessageToPlayers
(@Nullable final UUID sourcePlayerUuid, @Nonnull final Message message, @Nonnull final Store store)
Method broadcastMessageToPlayers.
- Parameters:
@Nullable final UUIDsourcePlayerUuid@Nonnull final Messagemessage@Nonnull final Storestore
broadcastPacketToPlayers
static
void
broadcastPacketToPlayers
(@Nonnull final ComponentAccessor componentAccessor, @Nonnull final Packet packet)
Method broadcastPacketToPlayers.
- Parameters:
@Nonnull final ComponentAccessorcomponentAccessor@Nonnull final Packetpacket
broadcastPacketToPlayersNoCache
static
void
broadcastPacketToPlayersNoCache
(@Nonnull final ComponentAccessor componentAccessor, @Nonnull final Packet packet)
Method broadcastPacketToPlayersNoCache.
- Parameters:
@Nonnull final ComponentAccessorcomponentAccessor@Nonnull final Packetpacket
resetPlayerModel
static
void
resetPlayerModel
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)
Method resetPlayerModel.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor
ModelComponent
public
new
ModelComponent
(newModel)
Method ModelComponent.
- Parameters:
newModelnewModel