Entity
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Extending CapabilityProvider<Entity>
Entity extends CapabilityProvider<Entity>. That means all methods available in CapabilityProvider<Entity> are also available in Entity
Implemented Interfaces
Entity implements the following interfaces. That means all methods defined in these interfaces are also available in Entity
Methods
Return Type: boolean
Parameter | Type |
---|---|
Parameter tagName | Type string |
Return Type: BlockPos
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter other | Type Entity |
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter other | Type Entity |
Parameter distance | Type double |
Return Type: boolean
Return Type: float
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Return Type: double
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Return Type: double
Parameter | Type |
---|---|
Parameter vec | Type Vec3 |
Return Type: double
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Return Type: boolean
Return Type: int
Return Type: stdlib.Iterable<ItemStack>
Return Type: stdlib.Iterable<ItemStack>
Return Type: float
Return Type: float
Return Type: int
Return Type: int
Return Type: int
Return Type: AABB
Return Type: Level
Return Type: Entity?
Gets the custom NBT data for this Entity.
Returns: The custom data for this Entity.
Return Type: MapData
Return Type: Component?
Gets the NBT data of this Entity.
Returns: The NBT data of this Entity.
Return Type: MapData
Return Type: Vec3
Return Type: int
Return Type: Direction
Return Type: Component
Return Type: float
Return Type: Vec3
Return Type: Vec3
Parameter | Type |
---|---|
Parameter partialTicks | Type float |
Return Type: double
Return Type: BlockState
Return Type: Entity?
Return Type: double
Return Type: Vec3
Return Type: stdlib.Iterable<ItemStack>
Return Type: Level
Return Type: Vec3
Return Type: int
Return Type: int
Return Type: Direction
Return Type: Component
Return Type: BlockPos
Return Type: stdlib.List<Entity>
Return Type: float
Return Type: PushReaction
Return Type: int
Return Type: Vec3
Parameter | Type |
---|---|
Parameter partialTicks | Type float |
Return Type: ResourceLocation
Return Type: int
Return Type: Entity
Return Type: SoundSource
Return Type: string
Return Type: Set<string>
Return Type: int
Return Type: int
Return Type: int
Return Type: EntityType
Return Type: Vec3
Parameter | Type |
---|---|
Parameter partialTicks | Type float |
Return Type: Entity?
Return Type: Vec3
Parameter | Type |
---|---|
Parameter partialTicks | Type float |
Return Type: double
Return Type: double
Parameter | Type |
---|---|
Parameter scale | Type double |
Return Type: double
Return Type: double
Parameter | Type |
---|---|
Parameter scale | Type double |
Return Type: double
Return Type: double
Parameter | Type |
---|---|
Parameter scale | Type double |
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Return Type: boolean
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Return Type: boolean
Parameter | Type |
---|---|
Parameter predicate | Type Predicate<Entity> |
Return Type: boolean
Parameter | Type |
---|---|
Parameter source | Type DamageSource |
Parameter amount | Type float |
Return Type: boolean
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter pos | Type BlockPos |
Parameter state | Type BlockState |
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter player | Type Player |
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter source | Type DamageSource |
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter amount | Type float |
Parameter relative | Type Vec3 |
Parameter | Type |
---|---|
Parameter vec | Type Vec3 |
Parameter | Type |
---|---|
Parameter pos | Type BlockPos |
Parameter yaw | Type float |
Parameter pitch | Type float |
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Parameter yaw | Type float |
Parameter pitch | Type float |
Parameter | Type |
---|---|
Parameter sound | Type SoundEvent |
Parameter volume | Type float |
Parameter pitch | Type float |
Return Type: Vec3
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Return Type: boolean
Parameter | Type |
---|---|
Parameter tagName | Type string |
Return Type: boolean
Parameter | Type |
---|---|
Parameter air | Type int |
Parameter | Type |
---|---|
Parameter name | Type Component? |
Parameter | Type |
---|---|
Parameter visible | Type boolean |
Parameter | Type |
---|---|
Parameter deltaMovement | Type Vec3 |
Parameter | Type |
---|---|
Parameter xDelta | Type double |
Parameter yDelta | Type double |
Parameter zDelta | Type double |
Parameter | Type |
---|---|
Parameter glowing | Type boolean |
Parameter | Type |
---|---|
Parameter invisible | Type boolean |
Parameter | Type |
---|---|
Parameter invulnerable | Type boolean |
Parameter | Type |
---|---|
Parameter inPowderSnow | Type boolean |
Parameter | Type |
---|---|
Parameter slot | Type EquipmentSlot |
Parameter stack | Type ItemStack |
Parameter | Type |
---|---|
Parameter noGravity | Type boolean |
Parameter | Type |
---|---|
Parameter onGround | Type boolean |
Parameter | Type |
---|---|
Parameter position | Type Vec3 |
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Parameter | Type |
---|---|
Parameter ticks | Type int |
Parameter | Type |
---|---|
Parameter seconds | Type int |
Parameter | Type |
---|---|
Parameter keyDown | Type boolean |
Parameter | Type |
---|---|
Parameter silent | Type boolean |
Parameter | Type |
---|---|
Parameter sprinting | Type boolean |
Parameter | Type |
---|---|
Parameter swimming | Type boolean |
Parameter | Type |
---|---|
Parameter ticks | Type int |
Return Type: boolean
Return Type: boolean
Return Type: boolean
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Return Type: boolean
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Parameter force | Type boolean |
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Parameter | Type |
---|---|
Parameter yaw | Type double |
Parameter pitch | Type double |
Updates the custom NBT data for this Entity.
Parameter | Type | Description |
---|---|---|
Parameter data | Type MapData | Description The custom data to store. |
Updates the NBT data of this Entity.
Parameter | Type | Description |
---|---|---|
Parameter data | Type MapData | Description The new Data for this Entity |
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name airSupply | Type int | Has Getter true | Has Setter false | Description |
Name allSlots | Type stdlib.Iterable<ItemStack> | Has Getter true | Has Setter false | Description |
Name armorSlots | Type stdlib.Iterable<ItemStack> | Has Getter true | Has Setter false | Description |
Name bbHeight | Type float | Has Getter true | Has Setter false | Description |
Name bbWidth | Type float | Has Getter true | Has Setter false | Description |
Name blockPosition | Type BlockPos | Has Getter true | Has Setter false | Description |
Name blockX | Type int | Has Getter true | Has Setter false | Description |
Name blockY | Type int | Has Getter true | Has Setter false | Description |
Name blockZ | Type int | Has Getter true | Has Setter false | Description |
Name boundingBoxForCulling | Type AABB | Has Getter true | Has Setter false | Description |
Name canBeCollidedWith | Type boolean | Has Getter true | Has Setter false | Description |
Name canFreeze | Type boolean | Has Getter true | Has Setter false | Description |
Name commandSenderWorld | Type Level | Has Getter true | Has Setter false | Description |
Name controllingPassenger | Type Entity? | Has Getter true | Has Setter false | Description |
Name customData | Type MapData | Has Getter true | Has Setter false | Description Gets the custom NBT data for this Entity. |
Name customName | Type Component? | Has Getter true | Has Setter false | Description |
Name dampensVibrations | Type boolean | Has Getter true | Has Setter false | Description |
Name data | Type MapData | Has Getter true | Has Setter false | Description Gets the NBT data of this Entity. |
Name deltaMovement | Type Vec3 | Has Getter true | Has Setter true | Description |
Name dimensionChangingDelay | Type int | Has Getter true | Has Setter false | Description |
Name direction | Type Direction | Has Getter true | Has Setter false | Description |
Name displayName | Type Component | Has Getter true | Has Setter false | Description |
Name eyeHeight | Type float | Has Getter true | Has Setter false | Description |
Name eyePosition | Type Vec3 | Has Getter true | Has Setter false | Description |
Name eyeY | Type double | Has Getter true | Has Setter false | Description |
Name feetBlockState | Type BlockState | Has Getter true | Has Setter false | Description |
Name fireImmune | Type boolean | Has Getter true | Has Setter false | Description |
Name firstPassenger | Type Entity? | Has Getter true | Has Setter false | Description |
Name fluidJumpThreshold | Type double | Has Getter true | Has Setter false | Description |
Name forward | Type Vec3 | Has Getter true | Has Setter false | Description |
Name handSlots | Type stdlib.Iterable<ItemStack> | Has Getter true | Has Setter false | Description |
Name hasCustomName | Type boolean | Has Getter true | Has Setter false | Description |
Name hasExactlyOnePlayerPassenger | Type boolean | Has Getter true | Has Setter false | Description |
Name hasGlowingTag | Type boolean | Has Getter true | Has Setter false | Description |
Name isAlive | Type boolean | Has Getter true | Has Setter false | Description |
Name isAttackable | Type boolean | Has Getter true | Has Setter false | Description |
Name isCrouching | Type boolean | Has Getter true | Has Setter false | Description |
Name isCurrentlyGlowing | Type boolean | Has Getter true | Has Setter false | Description |
Name isCustomNameVisible | Type boolean | Has Getter true | Has Setter false | Description |
Name isDescending | Type boolean | Has Getter true | Has Setter false | Description |
Name isDiscrete | Type boolean | Has Getter true | Has Setter false | Description |
Name isFullyFrozen | Type boolean | Has Getter true | Has Setter false | Description |
Name isInLava | Type boolean | Has Getter true | Has Setter false | Description |
Name isInWall | Type boolean | Has Getter true | Has Setter false | Description |
Name isInWater | Type boolean | Has Getter true | Has Setter false | Description |
Name isInWaterOrBubble | Type boolean | Has Getter true | Has Setter false | Description |
Name isInWaterOrRain | Type boolean | Has Getter true | Has Setter false | Description |
Name isInWaterRainOrBubble | Type boolean | Has Getter true | Has Setter false | Description |
Name isInvisible | Type boolean | Has Getter true | Has Setter false | Description |
Name isInvulnerable | Type boolean | Has Getter true | Has Setter false | Description |
Name isNoGravity | Type boolean | Has Getter true | Has Setter false | Description |
Name isOnFire | Type boolean | Has Getter true | Has Setter false | Description |
Name isOnGround | Type boolean | Has Getter true | Has Setter false | Description |
Name isOnPortalCooldown | Type boolean | Has Getter true | Has Setter false | Description |
Name isPassenger | Type boolean | Has Getter true | Has Setter false | Description |
Name isPickable | Type boolean | Has Getter true | Has Setter false | Description |
Name isPushable | Type boolean | Has Getter true | Has Setter false | Description |
Name isPushedByFluid | Type boolean | Has Getter true | Has Setter false | Description |
Name isRemoved | Type boolean | Has Getter true | Has Setter false | Description |
Name isShiftKeyDown | Type boolean | Has Getter true | Has Setter false | Description |
Name isSilent | Type boolean | Has Getter true | Has Setter false | Description |
Name isSpectator | Type boolean | Has Getter true | Has Setter false | Description |
Name isSprinting | Type boolean | Has Getter true | Has Setter false | Description |
Name isSteppingCarefully | Type boolean | Has Getter true | Has Setter false | Description |
Name isSuppressingBounce | Type boolean | Has Getter true | Has Setter false | Description |
Name isSwimming | Type boolean | Has Getter true | Has Setter false | Description |
Name isUnderWater | Type boolean | Has Getter true | Has Setter false | Description |
Name isVehicle | Type boolean | Has Getter true | Has Setter false | Description |
Name isVisuallyCrawling | Type boolean | Has Getter true | Has Setter false | Description |
Name isVisuallySwimming | Type boolean | Has Getter true | Has Setter false | Description |
Name level | Type Level | Has Getter true | Has Setter false | Description |
Name lookAngle | Type Vec3 | Has Getter true | Has Setter false | Description |
Name maxAirSupply | Type int | Has Getter true | Has Setter false | Description |
Name maxFallDistance | Type int | Has Getter true | Has Setter false | Description |
Name motionDirection | Type Direction | Has Getter true | Has Setter false | Description |
Name name | Type Component | Has Getter true | Has Setter false | Description |
Name onPos | Type BlockPos | Has Getter true | Has Setter false | Description |
Name passengers | Type stdlib.List<Entity> | Has Getter true | Has Setter false | Description |
Name percentFrozen | Type float | Has Getter true | Has Setter false | Description |
Name pistonPushReaction | Type PushReaction | Has Getter true | Has Setter false | Description |
Name portalWaitTime | Type int | Has Getter true | Has Setter false | Description |
Name position | Type Vec3 | Has Getter true | Has Setter false | Description |
Name registryName | Type ResourceLocation | Has Getter true | Has Setter false | Description |
Name remainingFireTicks | Type int | Has Getter true | Has Setter false | Description |
Name rideableUnderWater | Type boolean | Has Getter true | Has Setter false | Description |
Name rootVehicle | Type Entity | Has Getter true | Has Setter false | Description |
Name shouldShowName | Type boolean | Has Getter true | Has Setter false | Description |
Name showVehicleHealth | Type boolean | Has Getter true | Has Setter false | Description |
Name soundSource | Type SoundSource | Has Getter true | Has Setter false | Description |
Name stringUUID | Type string | Has Getter true | Has Setter false | Description |
Name tags | Type Set<string> | Has Getter true | Has Setter false | Description |
Name teamColor | Type int | Has Getter true | Has Setter false | Description |
Name ticksFrozen | Type int | Has Getter true | Has Setter false | Description |
Name ticksRequiredToFreeze | Type int | Has Getter true | Has Setter false | Description |
Name type | Type EntityType | Has Getter true | Has Setter false | Description |
Name vehicle | Type Entity? | Has Getter true | Has Setter false | Description |
Name x | Type double | Has Getter true | Has Setter false | Description |
Name y | Type double | Has Getter true | Has Setter false | Description |
Name z | Type double | Has Getter true | Has Setter false | Description |