Class EntitySplashPotion
java.lang.Object
org.cloudburstmc.server.entity.BaseEntity
org.cloudburstmc.server.entity.projectile.EntityProjectile
org.cloudburstmc.server.entity.projectile.EntitySplashPotion
- All Implemented Interfaces:
org.cloudburstmc.api.entity.Entity,org.cloudburstmc.api.entity.Projectile,org.cloudburstmc.api.entity.projectile.SplashPotion
- Direct Known Subclasses:
EntityLingeringPotion
public class EntitySplashPotion
extends EntityProjectile
implements org.cloudburstmc.api.entity.projectile.SplashPotion
- Author:
- xtypr
-
Field Summary
Fields inherited from class org.cloudburstmc.server.entity.projectile.EntityProjectile
closeOnCollide, damage, hadCollisionFields 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
ConstructorsConstructorDescriptionEntitySplashPotion(org.cloudburstmc.api.entity.EntityType<? extends org.cloudburstmc.api.entity.projectile.SplashPotion> type, org.cloudburstmc.api.level.Location location) -
Method Summary
Modifier and TypeMethodDescriptionfloatgetDrag()floatfloatfloatshortorg.cloudburstmc.api.potion.PotionTypefloatgetWidth()protected voidvoidonCollideWithEntity(org.cloudburstmc.api.entity.Entity entity)booleanonUpdate(int currentTick)voidsetPotionId(int potionId)voidsetPotionType(org.cloudburstmc.api.potion.PotionType type)protected voidsplash(org.cloudburstmc.api.entity.Entity collidedWith)Methods inherited from class org.cloudburstmc.server.entity.projectile.EntityProjectile
attack, canCollideWith, getBaseDamage, getDamage, getResultDamage, isCritical, loadAdditionalData, saveAdditionalData, setCritical, setCritical, setDamageMethods inherited from class org.cloudburstmc.server.entity.BaseEntity
addEffect, addMotion, addMovement, attack, broadcastLinkPacket, canBeMovedByCurrents, canClimb, canClimbWalls, canCollide, canPassThrough, canTriggerPressurePlate, canTriggerWalking, checkBlockCollision, checkChunks, checkGroundState, checkObstruction, checkObstruction, close, createAddEntityPacket, despawnFrom, despawnFrom, despawnFromAll, dismount, entityBaseTick, entityBaseTick, extinguish, fall, fastMove, getAbsorption, getAir, getBaseOffset, 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, 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, attack, canBeMovedByCurrents, canCollide, canCollideWith, 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, teleportMethods inherited from interface org.cloudburstmc.api.entity.Projectile
getDamage, getShooter, isCritical, setCritical, setCritical, setDamage, setShooter
-
Constructor Details
-
EntitySplashPotion
public EntitySplashPotion(org.cloudburstmc.api.entity.EntityType<? extends org.cloudburstmc.api.entity.projectile.SplashPotion> type, org.cloudburstmc.api.level.Location location)
-
-
Method Details
-
initEntity
protected void initEntity()- Overrides:
initEntityin classEntityProjectile
-
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
-
onCollideWithEntity
public void onCollideWithEntity(org.cloudburstmc.api.entity.Entity entity)- Overrides:
onCollideWithEntityin classEntityProjectile
-
splash
protected void splash(org.cloudburstmc.api.entity.Entity collidedWith) -
onUpdate
public boolean onUpdate(int currentTick)- Specified by:
onUpdatein interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
onUpdatein classEntityProjectile
-
getPotionId
public short getPotionId()- Specified by:
getPotionIdin interfaceorg.cloudburstmc.api.entity.projectile.SplashPotion
-
setPotionId
public void setPotionId(int potionId)- Specified by:
setPotionIdin interfaceorg.cloudburstmc.api.entity.projectile.SplashPotion
-
getPotionType
public org.cloudburstmc.api.potion.PotionType getPotionType()- Specified by:
getPotionTypein interfaceorg.cloudburstmc.api.entity.projectile.SplashPotion
-
setPotionType
public void setPotionType(org.cloudburstmc.api.potion.PotionType type)- Specified by:
setPotionTypein interfaceorg.cloudburstmc.api.entity.projectile.SplashPotion
-