Class SpectatorEntity
java.lang.Object
com.zenith.feature.spectator.entity.SpectatorEntity
- Direct Known Subclasses:
SpectatorMob
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ArrayList<EntityMetadata<?, ?>> buildMetadata(GameProfile spectatorRealProfile, int spectatorEntityId, boolean self) Internal APIprotected ClientboundSoundPacketbuildSoundPacket(PlayerCache playerCache, BuiltinSound sound) protected ClientboundSoundPacketbuildSoundPacket(PlayerCache playerCache, BuiltinSound... sounds) protected abstract ArrayList<EntityMetadata<?, ?>> getBaseEntityMetadata(GameProfile spectatorProfile, int spectatorEntityId) Implemented by base classesArrayList<EntityMetadata<?, ?>> getEntityMetadata(GameProfile spectatorRealProfile, GameProfile spectatorFakeProfile, int spectatorEntityId) abstract doubleabstract doubleArrayList<EntityMetadata<?, ?>> getSelfEntityMetadata(GameProfile spectatorRealProfile, GameProfile spectatorFakeProfile, int spectatorEntityId) Public APIgetSoundPacket(PlayerCache playerCache) abstract PacketgetSpawnPacket(int entityId, UUID uuid, PlayerCache playerCache, GameProfile gameProfile) abstract doublegetWidth()protected ArrayList<EntityMetadata<?, ?>> metadataListOf(EntityMetadata... metadata) protected ArrayList<EntityMetadata<?, ?>> Convenience methods for base classes
-
Constructor Details
-
SpectatorEntity
public SpectatorEntity()
-
-
Method Details
-
getSelfEntityMetadata
public ArrayList<EntityMetadata<?,?>> getSelfEntityMetadata(GameProfile spectatorRealProfile, GameProfile spectatorFakeProfile, int spectatorEntityId) Public API -
getEntityMetadata
public ArrayList<EntityMetadata<?,?>> getEntityMetadata(GameProfile spectatorRealProfile, GameProfile spectatorFakeProfile, int spectatorEntityId) -
getSoundPacket
-
buildMetadata
protected ArrayList<EntityMetadata<?,?>> buildMetadata(GameProfile spectatorRealProfile, int spectatorEntityId, boolean self) Internal API -
getBaseEntityMetadata
protected abstract ArrayList<EntityMetadata<?,?>> getBaseEntityMetadata(GameProfile spectatorProfile, int spectatorEntityId) Implemented by base classes -
getSpawnPacket
public abstract Packet getSpawnPacket(int entityId, UUID uuid, PlayerCache playerCache, GameProfile gameProfile) -
getEyeHeight
public abstract double getEyeHeight() -
getHeight
public abstract double getHeight() -
getWidth
public abstract double getWidth() -
noMetadataList
Convenience methods for base classes -
metadataListOf
-
buildSoundPacket
-
buildSoundPacket
-