Package net.swofty.user
Class SkyBlockPlayer
java.lang.Object
net.minestom.server.entity.Entity
net.minestom.server.entity.LivingEntity
net.minestom.server.entity.Player
net.swofty.user.SkyBlockPlayer
- All Implemented Interfaces:
net.kyori.adventure.audience.Audience
,net.kyori.adventure.identity.Identified
,net.kyori.adventure.pointer.Pointered
,net.kyori.adventure.sound.Sound.Emitter
,net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>
,net.minestom.server.adventure.Localizable
,net.minestom.server.collision.Shape
,net.minestom.server.command.CommandSender
,net.minestom.server.event.EventHandler<net.minestom.server.event.trait.EntityEvent>
,net.minestom.server.inventory.EquipmentHandler
,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.utils.identity.NamedAndIdentified
,net.minestom.server.Viewable
public class SkyBlockPlayer
extends net.minestom.server.entity.Player
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minestom.server.entity.Player
net.minestom.server.entity.Player.FacePoint, net.minestom.server.entity.Player.Hand, net.minestom.server.entity.Player.MainHand, net.minestom.server.entity.Player.PlayerSettings
Nested classes/interfaces inherited from class net.minestom.server.entity.Entity
net.minestom.server.entity.Entity.Pose
-
Field Summary
FieldsFields inherited from class net.minestom.server.entity.Player
experiencePickupCooldown, EXPERIMENT_PERFORM_POSE_UPDATES, inventory, playerConnection
Fields inherited from class net.minestom.server.entity.LivingEntity
canPickupItem, expandedBoundingBox, invulnerable, isDead, itemPickupCooldown, lastDamageSource
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
ConstructorsConstructorDescriptionSkyBlockPlayer
(@NotNull UUID uuid, @NotNull String username, @NotNull net.minestom.server.network.player.PlayerConnection playerConnection) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAndUpdateItem
(SkyBlockItem item) void
void
float
float
float
float
int
double
getTimeToMine
(SkyBlockItem item, net.minestom.server.instance.block.Block b) boolean
void
sendMessage
(@NotNull String message) void
void
setDisplayReplacement
(StatisticDisplayReplacement replacement, StatisticDisplayReplacement.DisplayType type) void
setHealth
(float health) void
setHearts
(float hearts) void
setMana
(float mana) Methods inherited from class net.minestom.server.entity.Player
addPacketToQueue, asHoverEvent, asPlayer, callItemUpdateStateEvent, callItemUpdateStateEvent, clearTitle, didAnswerKeepAlive, didCloseInventory, dropItem, facePosition, facePosition, getAdditionalHearts, getAddPlayerToList, getBoots, getChestplate, getDeathLocation, getDefaultEatingTime, getDimensionType, getDisplayName, getEatingHand, getEntityMeta, getExp, getEyeHeight, getFieldViewModifier, getFlyingSpeed, getFood, getFoodSaturation, getGameMode, getHeldSlot, getHelmet, getInventory, getItemInMainHand, getItemInOffHand, getLastKeepAlive, getLastReceivedTeleportId, getLastSentTeleportId, getLatency, getLeggings, getLevel, getLocale, getName, getNextTeleportId, getOpenInventory, getPermissionLevel, getPlayerConnection, getPortalCooldown, getRemovePlayerToList, getRespawnPoint, getSettings, getSkin, getStatisticValueMap, getUsername, getVehicleInformation, hasReducedDebugScreenInformation, hideBossBar, identity, interpretPacketQueue, isAllowFlying, isCreative, isEating, isEnableRespawnScreen, isFlying, isImmune, isInstantBreak, isInvulnerable, isOnGround, isOnline, isPlayer, kick, kick, kill, openBook, openInventory, playEffect, playerConnectionInit, playSound, playSound, playSound, playSound, pointers, refreshAbilities, refreshAfterTeleport, refreshAnswerKeepAlive, refreshCommands, refreshEating, refreshEating, refreshFlying, refreshHealth, refreshHeldSlot, refreshKeepAlive, refreshLatency, refreshOnGround, refreshReceivedTeleportId, refreshVehicleSteer, remove, resetTitle, respawn, sendActionBar, sendChunkUpdates, sendDimension, sendMessage, sendPacket, sendPackets, sendPackets, sendPacketToViewersAndSelf, sendPlayerListHeaderAndFooter, sendPluginMessage, sendPluginMessage, sendTitlePart, setAdditionalHearts, setAllowFlying, setBelowNameTag, setBoots, setChestplate, setDeathLocation, setDefaultEatingTime, setDisplayName, setEnableRespawnScreen, setExp, setFieldViewModifier, setFlying, setFlyingSpeed, setFood, setFoodSaturation, setGameMode, setHeldItemSlot, setHelmet, setInstance, setInstance, setInstantBreak, setInvulnerable, setItemInMainHand, setItemInOffHand, setLeggings, setLevel, setLocale, setPermissionLevel, setPortalCooldown, setReducedDebugScreenInformation, setResourcePack, setRespawnPoint, setSkin, setSneaking, setUsernameField, setUuid, showBossBar, showPlayer, spectate, stopSound, stopSpectating, synchronizePosition, teleport, UNSAFE_changeDidCloseInventory, UNSAFE_init, update, updateOldViewer, updatePose, updateSnapshot
Methods inherited from class net.minestom.server.entity.LivingEntity
canPickupItem, damage, getArrowCount, getAttribute, getAttributeValue, getFireDamagePeriod, getLastDamageSource, getLivingEntityMeta, getPropertiesPacket, getTargetBlockPosition, getTeam, heal, isDead, isFlyingWithElytra, onAttributeChanged, refreshActiveHand, refreshIsDead, setArrowCount, setBoundingBox, setCanPickupItem, setFireDamagePeriod, setFireDamagePeriod, setFireForDuration, setFireForDuration, setFireForDuration, setFlyingWithElytra, setTeam, swingMainHand, swingOffHand, takeKnockback, updateNewViewer
Methods inherited from class net.minestom.server.entity.Entity
addEffect, addPassenger, addViewer, askSynchronization, autoViewEntities, clearEffects, despawn, editEntityMeta, eventNode, generateId, getAcquirable, getActiveEffects, getAliveTicks, getAllPermissions, getBoundingBox, getChunk, getCustomName, getDistance, getDistance, getDistanceSquared, getDistanceSquared, getEffect, getEffectLevel, getEntity, getEntity, getEntityId, getEntityType, 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, isRemoved, isSilent, isSneaking, isSprinting, lookAt, lookAt, refreshCurrentChunk, refreshPosition, refreshPosition, relativeEnd, relativeStart, removeEffect, removePassenger, removeViewer, scheduleNextTick, scheduler, scheduleRemove, scheduleRemove, setAutoViewable, setAutoViewEntities, setBoundingBox, setCustomName, setCustomNameVisible, setCustomSynchronizationCooldown, setGlowing, setGravity, setInstance, setInvisible, setNoGravity, setOnFire, setPose, setSilent, setSprinting, setVelocity, setView, spawn, switchEntityType, tagHandler, teleport, tick, triggerStatus, 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.audience.Audience
deleteMessage, deleteMessage, filterAudience, forEachAudience, openBook, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, showTitle, stopSound
Methods inherited from interface net.minestom.server.command.CommandSender
asConsole, isConsole, sendMessage
Methods inherited from interface net.minestom.server.inventory.EquipmentHandler
getEquipment, getEquipmentsPacket, getItemInHand, hasEquipment, setEquipment, setItemInHand, syncEquipment
Methods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEvent
Methods inherited from interface net.minestom.server.utils.identity.NamedAndIdentified
getUuid
Methods inherited from interface net.minestom.server.permission.PermissionHandler
addPermission, getAllPermissions, getPermission, hasPermission, hasPermission, hasPermission, removePermission, removePermission
Methods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom
Methods inherited from interface net.minestom.server.tag.Taggable
getTag, hasTag, removeTag, setTag, tagHandler
Methods inherited from interface net.minestom.server.Viewable
getViewersAsAudience, getViewersAsAudiences, isViewer, sendPacketsToViewers, sendPacketsToViewers, sendPacketToViewers
-
Field Details
-
health
public float health -
joined
public long joined -
bypassBuild
public boolean bypassBuild
-
-
Constructor Details
-
SkyBlockPlayer
-
-
Method Details
-
getDataHandler
-
getStatistics
-
getAntiCheatHandler
-
getLogHandler
-
getMissionData
-
isOnIsland
public boolean isOnIsland() -
setDisplayReplacement
public void setDisplayReplacement(StatisticDisplayReplacement replacement, StatisticDisplayReplacement.DisplayType type) -
getRegion
-
setMana
public void setMana(float mana) -
addAndUpdateItem
-
getMaxMana
public float getMaxMana() -
getMiningSpeed
public int getMiningSpeed() -
sendToHub
public void sendToHub() -
sendToIsland
-
getTimeToMine
-
getDefense
public float getDefense() -
setHearts
public void setHearts(float hearts) -
closeInventoryBypass
public void closeInventoryBypass() -
getMaxHealth
public float getMaxHealth()- Overrides:
getMaxHealth
in classnet.minestom.server.entity.LivingEntity
-
getHealth
public float getHealth()- Overrides:
getHealth
in classnet.minestom.server.entity.LivingEntity
-
setHealth
public void setHealth(float health) - Overrides:
setHealth
in classnet.minestom.server.entity.Player
-
sendMessage
-
closeInventory
public void closeInventory()- Overrides:
closeInventory
in classnet.minestom.server.entity.Player
-