Package com.loohp.limbo.entity
Class Entity
java.lang.Object
com.loohp.limbo.entity.Entity
- All Implemented Interfaces:
net.kyori.adventure.sound.Sound.Emitter
- Direct Known Subclasses:
LivingEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected booleanprotected net.kyori.adventure.text.Componentprotected booleanprotected booleanprotected intprotected intprotected booleanprotected booleanprotected booleanprotected booleanprotected floatprotected org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.Poseprotected booleanprotected booleanprotected booleanprotected final org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityTypeprotected booleanprotected UUIDprotected Worldprotected doubleprotected doubleprotected floatprotected double -
Constructor Summary
ConstructorsConstructorDescriptionEntity(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType type, int entityId, UUID uuid, World world, double x, double y, double z, float yaw, float pitch) Entity(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType type, Location location) Entity(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType type, World world, double x, double y, double z, float yaw, float pitch) Entity(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType type, UUID uuid, Location location) Entity(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType type, UUID uuid, World world, double x, double y, double z, float yaw, float pitch) -
Method Summary
Modifier and TypeMethodDescriptionintgetAir()net.kyori.adventure.text.ComponentintfloatgetPitch()org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.PosegetPose()org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityTypegetType()getWorld()doublegetX()doublegetY()floatgetYaw()doublegetZ()booleanbooleanbooleanbooleanbooleanbooleanbooleanisOnFire()booleanisSilent()booleanbooleanbooleanisValid()voidremove()voidsetAir(int air) voidsetCrouching(boolean crouching) voidsetCustomName(String name) voidsetCustomName(net.kyori.adventure.text.Component component) voidsetCustomNameVisible(boolean customNameVisible) voidsetElytraFlying(boolean elytraFlying) voidsetGlowing(boolean glowing) voidsetGravity(boolean gravity) voidsetInvisible(boolean invisible) voidsetOnFire(boolean onFire) voidsetPitch(float pitch) voidsetPose(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.Pose pose) voidsetSilent(boolean silent) voidsetSprinting(boolean sprinting) voidsetSwimming(boolean swimming) voidvoidsetX(double x) voidsetY(double y) voidsetYaw(float yaw) voidsetZ(double z) void
-
Field Details
-
onFire
protected boolean onFire -
crouching
protected boolean crouching -
unused
protected boolean unused -
sprinting
protected boolean sprinting -
swimming
protected boolean swimming -
invisible
protected boolean invisible -
glowing
protected boolean glowing -
elytraFlying
protected boolean elytraFlying -
air
protected int air -
customName
protected net.kyori.adventure.text.Component customName -
customNameVisible
protected boolean customNameVisible -
silent
protected boolean silent -
noGravity
protected boolean noGravity -
pose
protected org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.Pose pose -
frozenTicks
protected int frozenTicks -
type
protected final org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType type -
entityId
protected int entityId -
uuid
-
world
-
x
protected double x -
y
protected double y -
z
protected double z -
yaw
protected float yaw -
pitch
protected float pitch
-
-
Constructor Details
-
Method Details
-
getType
public org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType getType() -
getLocation
-
teleport
-
getCustomName
public net.kyori.adventure.text.Component getCustomName() -
setCustomName
-
setCustomName
public void setCustomName(net.kyori.adventure.text.Component component) -
isOnFire
public boolean isOnFire() -
setOnFire
public void setOnFire(boolean onFire) -
isCrouching
public boolean isCrouching() -
setCrouching
public void setCrouching(boolean crouching) -
isSprinting
public boolean isSprinting() -
setSprinting
public void setSprinting(boolean sprinting) -
isSwimming
public boolean isSwimming() -
setSwimming
public void setSwimming(boolean swimming) -
isInvisible
public boolean isInvisible() -
setInvisible
public void setInvisible(boolean invisible) -
isGlowing
public boolean isGlowing() -
setGlowing
public void setGlowing(boolean glowing) -
isElytraFlying
public boolean isElytraFlying() -
setElytraFlying
public void setElytraFlying(boolean elytraFlying) -
getAir
public int getAir() -
setAir
public void setAir(int air) -
isCustomNameVisible
public boolean isCustomNameVisible() -
setCustomNameVisible
public void setCustomNameVisible(boolean customNameVisible) -
isSilent
public boolean isSilent() -
setSilent
public void setSilent(boolean silent) -
hasGravity
public boolean hasGravity() -
setGravity
public void setGravity(boolean gravity) -
getPose
public org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.Pose getPose() -
setPose
public void setPose(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.Pose pose) -
getWorld
-
setWorld
-
getX
public double getX() -
setX
public void setX(double x) -
getY
public double getY() -
setY
public void setY(double y) -
getZ
public double getZ() -
setZ
public void setZ(double z) -
getYaw
public float getYaw() -
setYaw
public void setYaw(float yaw) -
getPitch
public float getPitch() -
setPitch
public void setPitch(float pitch) -
getEntityId
public int getEntityId() -
getUniqueId
-
isValid
public boolean isValid() -
remove
public void remove() -
getDataWatcher
-