Class AbstractPlayerEntity
java.lang.Object
de.ellpeck.rockbottom.api.entity.MovableWorldObject
de.ellpeck.rockbottom.api.entity.Entity
de.ellpeck.rockbottom.api.entity.LivingEntity
de.ellpeck.rockbottom.api.entity.player.AbstractPlayerEntity
- All Implemented Interfaces:
IAdditionalDataProvider,ICommandSender
-
Nested Class Summary
Nested classes/interfaces inherited from class de.ellpeck.rockbottom.api.entity.Entity
Entity.IFactory -
Field Summary
Fields inherited from class de.ellpeck.rockbottom.api.entity.LivingEntity
breath, damageCooldown, deathTimer, emotionHandler, health, jumping, jumpTicks, jumpTimeout, lastDamageTime, maxBreath, maxHealthFields inherited from class de.ellpeck.rockbottom.api.entity.Entity
canBreathe, canClimb, canSwim, chunkX, chunkY, currentAiTask, dead, facing, fallStartY, interpolationX, interpolationY, isClimbing, isDropping, isFalling, isFlying, lastSyncX, lastSyncY, submergedLiquid, ticksExistedFields inherited from class de.ellpeck.rockbottom.api.entity.MovableWorldObject
collidedHor, collidedVert, currentBounds, lastTickX, lastTickY, motionX, motionY, onGround, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanabstract voidgainSkill(float percentage) abstract Pos2abstract CameraModeabstract Stringabstract doubleabstract intgetColor()abstract intabstract ItemContainerabstract IPlayerDesignabstract GameModeabstract InventorygetInv()abstract ItemContainerabstract doubleabstract IKnowledgeManagerabstract doubleabstract StringgetName()abstract doubleabstract doublegetRange()abstract ItemInstanceabstract intabstract floatabstract intabstract IStatisticsabstract booleanisInRange(double x, double y, double maxDistance) abstract booleanabstract booleanabstract booleanabstract voidonChunkLoaded(IChunk chunk) abstract voidonChunkUnloaded(IChunk chunk) abstract booleanopenContainer(ItemContainer container) abstract booleanabstract booleanopenGuiContainer(Gui gui, ItemContainer container) abstract voidabstract voidresetAndSpawn(IGameInstance game) abstract voidsendPacket(IPacket packet) abstract voidsetGameMode(GameMode gamemode) abstract voidsetSelectedSlot(int slot) abstract voidsetSkill(float percentage, int points) abstract booleanabstract inttakeSkillPoints(int points) abstract booleanwake()Methods inherited from class de.ellpeck.rockbottom.api.entity.LivingEntity
getBreath, getDamageCooldown, getDeathLingerTime, getEmotion, getEmotionHandler, getHealth, getInitialMaxHealth, getJumpTimeout, getKillReward, getMaxBreath, getMaxHealth, getRegenRate, jump, load, onAttack, save, setBreath, setHealth, setMaxBreath, setMaxHealth, setReadyToRemove, shouldBeRemoved, takeDamage, updateMethods inherited from class de.ellpeck.rockbottom.api.entity.Entity
addAiTask, addEffect, applyKnockback, applyMotion, canCollideWith, doesInterpolate, doesSave, doesSync, getActiveEffects, getAdditionalData, getDespawnHandler, getEffectModifier, getEyeHeight, getHeight, getInteractionPriority, getMaxInteractionDistance, getOrCreateAdditionalData, getRegistryName, getRenderer, getRenderPriority, getSyncFrequency, getTask, getTaskId, getUniqueId, getWidth, hasAdditionalData, hasEffect, isDead, moveToChunk, moveToWorld, onCollideWithEntity, onCollideWithTile, onEntityCollision, onEntityIntersection, onGroundHit, onInteractWith, onInteractWithBreakKey, onIntersectWithEntity, onIntersectWithTile, onPositionReset, onRemoveFromWorld, onTileCollision, onTileIntersection, removeEffect, sendToClients, setAdditionalData, setDead, setUniqueId, shouldBeFalling, shouldMakeChunkPersist, shouldRender, shouldStartClimbingMethods inherited from class de.ellpeck.rockbottom.api.entity.MovableWorldObject
canCollideWithTile, getLerpedX, getLerpedY, getOriginX, getOriginY, getX, getY, move, resetBounds, setBounds, setBoundsOrigin, setPosMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.ellpeck.rockbottom.api.net.chat.ICommandSender
getUniqueId, getWorld, sendMessageTo
-
Constructor Details
-
AbstractPlayerEntity
-
-
Method Details
-
openGui
-
openGuiContainer
-
openContainer
-
closeContainer
public abstract boolean closeContainer() -
getContainer
-
resetAndSpawn
-
sendPacket
-
move
-
onChunkLoaded
-
onChunkUnloaded
-
getChunksInRange
-
getCommandLevel
public abstract int getCommandLevel()- Specified by:
getCommandLevelin interfaceICommandSender
-
getInvContainer
-
getInv
-
getSelectedSlot
public abstract int getSelectedSlot() -
setSelectedSlot
-
getSelectedItem
-
getChatColorFormat
- Specified by:
getChatColorFormatin interfaceICommandSender
-
getName
- Specified by:
getNamein interfaceICommandSender
-
getColor
public abstract int getColor() -
getDesign
-
isInRange
public abstract boolean isInRange(double x, double y, double maxDistance) -
getKnowledge
-
getStatistics
-
getMoveSpeed
public abstract double getMoveSpeed() -
getClimbSpeed
public abstract double getClimbSpeed() -
getJumpHeight
public abstract double getJumpHeight() -
getRange
public abstract double getRange() -
getPickupRange
public abstract double getPickupRange() -
isLocalPlayer
public abstract boolean isLocalPlayer() -
gainSkill
public abstract void gainSkill(float percentage) -
getSkillPercentage
public abstract float getSkillPercentage() -
getSkillPoints
public abstract int getSkillPoints() -
takeSkillPoints
public abstract int takeSkillPoints(int points) -
setSkill
-
getGameMode
-
setGameMode
-
getCameraMode
-
getBedPosition
-
sleep
-
wake
public abstract boolean wake() -
removeBedSpawn
public abstract void removeBedSpawn() -
isSleeping
public abstract boolean isSleeping()
-