Package net.swofty.entity.npc
Class NPCEntityImpl
java.lang.Object
net.minestom.server.entity.Entity
net.swofty.entity.npc.NPCEntityImpl
- All Implemented Interfaces:
net.kyori.adventure.sound.Sound.Emitter
,net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>
,net.minestom.server.collision.Shape
,net.minestom.server.event.EventHandler<net.minestom.server.event.trait.EntityEvent>
,net.minestom.server.permission.PermissionHandler
,net.minestom.server.snapshot.Snapshotable
,net.minestom.server.tag.Taggable
,net.minestom.server.tag.TagReadable
,net.minestom.server.tag.TagWritable
,net.minestom.server.Tickable
,net.minestom.server.timer.Schedulable
,net.minestom.server.Viewable
public class NPCEntityImpl
extends net.minestom.server.entity.Entity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minestom.server.entity.Entity
net.minestom.server.entity.Entity.Pose
-
Field Summary
Fields inherited from class net.minestom.server.entity.Entity
boundingBox, currentChunk, entityMeta, entityType, gravityAcceleration, gravityDragPerTick, gravityTickCount, hasCollision, hasPhysics, instance, lastSyncedPosition, lastVelocityWasZero, metadata, onGround, position, previousPosition, trackingUpdate, uuid, vehicle, velocity, viewEngine, viewers
-
Constructor Summary
ConstructorsConstructorDescriptionNPCEntityImpl
(@NotNull String bottomDisplay, @Nullable String skinTexture, @Nullable String skinSignature) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearCache
(SkyBlockPlayer player) Clears the cache for a player, is only run on quit,void
updateNewViewer
(@NotNull net.minestom.server.entity.Player player) void
updateOldViewer
(@NotNull net.minestom.server.entity.Player player) Methods inherited from class net.minestom.server.entity.Entity
addEffect, addPassenger, addViewer, asHoverEvent, askSynchronization, autoViewEntities, clearEffects, despawn, editEntityMeta, eventNode, generateId, getAcquirable, getActiveEffects, getAliveTicks, getAllPermissions, getBoundingBox, getChunk, getCustomName, getDistance, getDistance, getDistanceSquared, getDistanceSquared, getEffect, getEffectLevel, getEntity, getEntity, getEntityId, getEntityMeta, getEntityType, getEyeHeight, getGravityAcceleration, getGravityDragPerTick, getGravityTickCount, getInstance, getLineOfSight, getLineOfSightEntity, getMetadataPacket, getPassengers, getPassengersPacket, getPose, getPosition, getUuid, getVehicle, getVelocity, getVelocityForPacket, getVelocityPacket, getViewers, hasCollision, hasEffect, hasLineOfSight, hasLineOfSight, hasNoGravity, hasPassenger, hasPredictableViewers, hasVelocity, intersectBox, intersectBoxSwept, isActive, isAutoViewable, isCustomNameVisible, isGlowing, isInvisible, isOccluded, isOnFire, isOnGround, isRemoved, isSilent, isSneaking, isSprinting, lookAt, lookAt, refreshCurrentChunk, refreshPosition, refreshPosition, relativeEnd, relativeStart, remove, removeEffect, removePassenger, removeViewer, scheduleNextTick, scheduler, scheduleRemove, scheduleRemove, setAutoViewable, setAutoViewEntities, setBoundingBox, setBoundingBox, setCustomName, setCustomNameVisible, setCustomSynchronizationCooldown, setGlowing, setGravity, setInstance, setInstance, setInstance, setInvisible, setNoGravity, setOnFire, setPose, setSilent, setSneaking, setSprinting, setUuid, setVelocity, setView, spawn, switchEntityType, synchronizePosition, tagHandler, takeKnockback, teleport, teleport, tick, triggerStatus, update, updatePose, updateSnapshot, updateVelocity, updateViewableRule, updateViewableRule, updateViewerRule, updateViewerRule
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEvent
Methods inherited from interface net.minestom.server.permission.PermissionHandler
addPermission, getPermission, hasPermission, hasPermission, hasPermission, removePermission, removePermission
Methods inherited from interface net.minestom.server.tag.Taggable
getTag, hasTag, removeTag, setTag
Methods inherited from interface net.minestom.server.Viewable
getViewersAsAudience, getViewersAsAudiences, isViewer, sendPacketsToViewers, sendPacketsToViewers, sendPacketToViewers, sendPacketToViewersAndSelf
-
Constructor Details
-
NPCEntityImpl
-
-
Method Details
-
updateNewViewer
public void updateNewViewer(@NotNull @NotNull net.minestom.server.entity.Player player) - Overrides:
updateNewViewer
in classnet.minestom.server.entity.Entity
-
updateOldViewer
public void updateOldViewer(@NotNull @NotNull net.minestom.server.entity.Player player) - Overrides:
updateOldViewer
in classnet.minestom.server.entity.Entity
-
clearCache
Clears the cache for a player, is only run on quit,- Parameters:
player
-
-