Class EntityFallingBlock
java.lang.Object
org.cloudburstmc.server.entity.BaseEntity
org.cloudburstmc.server.entity.misc.EntityFallingBlock
- All Implemented Interfaces:
org.cloudburstmc.api.entity.Entity,org.cloudburstmc.api.entity.misc.FallingBlock
public class EntityFallingBlock
extends BaseEntity
implements org.cloudburstmc.api.entity.misc.FallingBlock
- Author:
- MagicDroidX
-
Field Summary
Fields inherited from class org.cloudburstmc.server.entity.BaseEntity
absorption, age, blocksAround, boundingBox, chunk, closed, collisionBlockStates, data, deadTicks, effects, entityCollisionReduction, fallDistance, fireProof, fireTicks, firstMove, hasSpawned, health, highestPosition, inBlock, inPortalTicks, invulnerable, isCollided, isCollidedHorizontally, isCollidedVertically, isPlayer, isStatic, justCreated, keepMovement, lastDamageCause, lastMotion, lastPitch, lastPosition, lastUpdate, lastYaw, level, maxFireTicks, motion, motionChanged, noDamageTicks, onGround, passengers, pitch, pitchDelta, position, positionChanged, scale, server, tag, ticksLived, timing, vehicle, yaw, yawDelta, ySize -
Constructor Summary
ConstructorsConstructorDescriptionEntityFallingBlock(org.cloudburstmc.api.entity.EntityType<org.cloudburstmc.api.entity.misc.FallingBlock> type, org.cloudburstmc.api.level.Location location) -
Method Summary
Modifier and TypeMethodDescriptionbooleanattack(org.cloudburstmc.api.event.entity.EntityDamageEvent source)booleanReturns whether this entity can be moved by currents in liquids.booleanbooleancanCollideWith(org.cloudburstmc.api.entity.Entity entity)protected floatorg.cloudburstmc.api.block.BlockStategetBlock()floatgetDrag()floatfloatfloatfloatgetWidth()voidloadAdditionalData(com.nukkitx.nbt.NbtMap tag)booleanonUpdate(int currentTick)voidsaveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)voidsetBlock(org.cloudburstmc.api.block.BlockState blockState)Methods inherited from class org.cloudburstmc.server.entity.BaseEntity
addEffect, addMotion, addMovement, attack, broadcastLinkPacket, canClimb, canClimbWalls, canPassThrough, canTriggerPressurePlate, canTriggerWalking, checkBlockCollision, checkChunks, checkGroundState, checkObstruction, checkObstruction, close, createAddEntityPacket, despawnFrom, despawnFrom, despawnFromAll, dismount, entityBaseTick, entityBaseTick, extinguish, fall, fastMove, getAbsorption, getAir, getBlocksAround, getBoundingBox, getCardinalDirection, getChunk, getCollisionBlocks, getData, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLevel, getLocation, getMaxHealth, getMotion, getMountedOffset, getName, getNameTag, getNoDamageTicks, getOwner, getPassenger, getPassengers, getPitch, getPosition, getRuntimeId, getScale, getScoreTag, getSeatPosition, getServer, getStepHeight, getTag, getType, getUniqueId, getVehicle, getViewers, getX, getY, getYaw, getZ, handleLavaMovement, hasControllingPassenger, hasEffect, hasEffect, hasNameTag, heal, heal, init, initEntity, isAlive, isClosed, isControlling, isImmobile, isInsideOfFire, isInsideOfSolid, isInsideOfWater, isInvulnerable, isNameTagAlwaysVisible, isNameTagVisible, isOnGround, isPassenger, kill, mount, move, move, onCollideWithPlayer, onDismount, onEntityCollision, onInteract, onInteract, onMount, onStruckByLightning, recalculateBoundingBox, recalculateEffectColor, removeAllEffects, removeEffect, removeEffect, resetFallDistance, respawnToAll, scheduleUpdate, sendData, sendData, sendFlags, sendPotionEffects, setAbsorption, setAir, setCanClimb, setCanClimb, setCanClimbWalls, setCanClimbWalls, setFallDistance, setHealth, setHighestPosition, setImmobile, setImmobile, setInvulnerable, setLastDamageCause, setMaxHealth, setMotion, setNameTag, setNameTagAlwaysVisible, setNameTagAlwaysVisible, setNameTagVisible, setNameTagVisible, setNoDamageTicks, setOnFire, setOnGround, setOwner, setPosition, setPositionAndRotation, setRotation, setScale, setScoreTag, setSeatPosition, spawnTo, spawnTo, spawnToAll, switchLevel, teleport, teleport, teleport, teleport, toString, updateFallState, updateMovement, updatePassengerPosition, updatePassengersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cloudburstmc.api.entity.Entity
addEffect, attack, canPassThrough, canTriggerPressurePlate, close, despawnFrom, despawnFromAll, dismount, extinguish, fall, getAbsorption, getBoundingBox, getChunk, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLevel, getLocation, getMaxHealth, getMotion, getName, getNameTag, getNoDamageTicks, getOwner, getPassengers, getPitch, getPosition, getRuntimeId, getScale, getSeatPosition, getServer, getType, getUniqueId, getVehicle, getViewers, getX, getY, getYaw, getZ, hasControllingPassenger, hasEffect, hasEffect, hasNameTag, heal, heal, isAlive, isClosed, isControlling, isNameTagVisible, isOnFire, isOnGround, isPassenger, isUndead, kill, mount, mount, onDismount, onEntityCollision, onInteract, onMount, onStruckByLightning, removeAllEffects, removeEffect, removeEffect, resetFallDistance, setAbsorption, setHealth, setHighestPosition, setMaxHealth, setMotion, setNameTag, setNameTagVisible, setNoDamageTicks, setOnFire, setOnGround, setOwner, setPosition, setPositionAndRotation, setRotation, setScale, setSeatPosition, spawnTo, spawnToAll, teleport, teleport, teleport, teleport
-
Constructor Details
-
EntityFallingBlock
public EntityFallingBlock(org.cloudburstmc.api.entity.EntityType<org.cloudburstmc.api.entity.misc.FallingBlock> type, org.cloudburstmc.api.level.Location location)
-
-
Method Details
-
getWidth
public float getWidth()- Specified by:
getWidthin interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
getWidthin classBaseEntity
-
getLength
public float getLength()- Specified by:
getLengthin interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
getLengthin classBaseEntity
-
getHeight
public float getHeight()- Specified by:
getHeightin interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
getHeightin classBaseEntity
-
getGravity
public float getGravity()- Specified by:
getGravityin interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
getGravityin classBaseEntity
-
getDrag
public float getDrag()- Specified by:
getDragin interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
getDragin classBaseEntity
-
getBaseOffset
protected float getBaseOffset()- Overrides:
getBaseOffsetin classBaseEntity
-
canCollide
public boolean canCollide()- Specified by:
canCollidein interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
canCollidein classBaseEntity
-
loadAdditionalData
public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)- Overrides:
loadAdditionalDatain classBaseEntity
-
saveAdditionalData
public void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)- Overrides:
saveAdditionalDatain classBaseEntity
-
canCollideWith
public boolean canCollideWith(org.cloudburstmc.api.entity.Entity entity)- Specified by:
canCollideWithin interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
canCollideWithin classBaseEntity
-
attack
public boolean attack(org.cloudburstmc.api.event.entity.EntityDamageEvent source)- Specified by:
attackin interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
attackin classBaseEntity
-
onUpdate
public boolean onUpdate(int currentTick)- Specified by:
onUpdatein interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
onUpdatein classBaseEntity
-
getBlock
public org.cloudburstmc.api.block.BlockState getBlock()- Specified by:
getBlockin interfaceorg.cloudburstmc.api.entity.misc.FallingBlock
-
setBlock
public void setBlock(org.cloudburstmc.api.block.BlockState blockState)- Specified by:
setBlockin interfaceorg.cloudburstmc.api.entity.misc.FallingBlock
-
canBeMovedByCurrents
public boolean canBeMovedByCurrents()Description copied from class:BaseEntityReturns whether this entity can be moved by currents in liquids.- Specified by:
canBeMovedByCurrentsin interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
canBeMovedByCurrentsin classBaseEntity- Returns:
- boolean
-