public class BoatEntity extends Entity
Modifier and Type | Class and Description |
---|---|
static class |
BoatEntity.Status |
static class |
BoatEntity.Type |
addedToChunk, cachedUniqueIdString, chunkCoordX, chunkCoordY, chunkCoordZ, collided, collidedHorizontally, collidedVertically, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, eyesInWater, fallDistance, firstUpdate, FLAGS, forceSpawn, glowing, hurtResistantTime, ignoreFrustumCheck, inLava, inPortal, inWater, isAirBorne, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, LOGGER, motionMultiplier, noClip, onGround, portalCounter, POSE, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, world
field_213139_a_
Constructor and Description |
---|
BoatEntity(EntityType<? extends BoatEntity> p_i50129_1_,
World p_i50129_2_) |
BoatEntity(World worldIn,
double x,
double y,
double z) |
Modifier and Type | Method and Description |
---|---|
protected void |
addPassenger(Entity passenger) |
void |
applyEntityCollision(Entity entityIn) |
void |
applyOrientationToEntity(Entity entityToUpdate) |
protected void |
applyYawToEntity(Entity entityToUpdate) |
boolean |
attackEntityFrom(DamageSource source,
float amount) |
boolean |
canBeCollidedWith() |
boolean |
canBePushed() |
protected boolean |
canFitPassenger(Entity passenger) |
protected boolean |
canTriggerWalking() |
IPacket<?> |
createSpawnPacket() |
Direction |
getAdjustedHorizontalFacing() |
float |
getBoatGlide() |
BoatEntity.Type |
getBoatType() |
AxisAlignedBB |
getCollisionBoundingBox() |
AxisAlignedBB |
getCollisionBox(Entity entityIn) |
Entity |
getControllingPassenger() |
float |
getDamageTaken() |
int |
getForwardDirection() |
Item |
getItemBoat() |
double |
getMountedYOffset() |
protected SoundEvent |
getPaddleSound() |
boolean |
getPaddleState(int side) |
float |
getRockingAngle(float partialTicks) |
float |
getRowingTime(int side,
float limbSwing) |
int |
getTimeSinceHit() |
float |
getWaterLevelAbove() |
void |
onEnterBubbleColumnWithAirAbove(boolean downwards) |
void |
performHurtAnimation() |
boolean |
processInitialInteract(PlayerEntity player,
Hand hand) |
protected void |
readAdditional(CompoundNBT compound) |
protected void |
registerData() |
void |
setBoatType(BoatEntity.Type boatType) |
void |
setDamageTaken(float damageTaken) |
void |
setForwardDirection(int forwardDirection) |
void |
setPaddleState(boolean left,
boolean right) |
void |
setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean teleport) |
void |
setTimeSinceHit(int timeSinceHit) |
void |
tick() |
protected void |
updateFallState(double y,
boolean onGroundIn,
BlockState state,
BlockPos pos) |
void |
updateInputs(boolean p_184442_1_,
boolean p_184442_2_,
boolean p_184442_3_,
boolean p_184442_4_) |
void |
updatePassenger(Entity passenger) |
protected void |
writeAdditional(CompoundNBT compound) |
addTag, addTrackingPlayer, addVelocity, allowLogging, applyEnchantments, applyPlayerInteraction, areEyesInFluid, areEyesInFluid, awardKillScore, baseTick, canBeAttackedWithItem, canBeRidden, canBeRiddenInWater, canExplosionDestroyBlock, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fall, fillCrashReport, func_213286_i, func_213296_b, func_213300_bk, func_213312_b, func_213314_bj, func_213320_d, func_213324_a, func_223307_a, func_223308_g, func_223310_a, func_223314_ad, getAbsoluteMotion, getAir, getAllowedMovement, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBoundingBox, getBoundingBox, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCollisionBorderSize, getCommandSource, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyeHeight, getEyePosition, getFireImmuneTicks, getFlag, getForward, getHeight, getHeldEquipment, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getMotion, getName, getPassengers, getPermissionLevel, getPersistentData, getPitch, getPitchYaw, getPortalCooldown, getPose, getPosition, getPositionVec, getPositionVector, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getRotationYawHead, getScoreboardName, getServer, getSize, getSoundCategory, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeleportDirection, getType, getUniqueID, getVectorForRotation, getWidth, getYaw, getYOffset, handleFluidAcceleration, handlePistonMovement, handleSneakMovement, handleStatusUpdate, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, ignoreItemEntityData, isAddedToWorld, isAlive, isBeingRidden, isBurning, isCustomNameVisible, isEntityEqual, isEntityInsideOpaqueBlock, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInvisible, isInvisibleToPlayer, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubbleColumn, isInWaterRainOrBubbleColumn, isLiving, isNonBoss, isOffsetPositionInLiquid, isOnePlayerRiding, isOnSameTeam, isOnScoreboardTeam, isPassenger, isPassenger, isPassenger, isPoseClear, isPushedByWater, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSpectator, isSprinting, isSwimming, isWet, lookAt, makeFlySound, markVelocityChanged, move, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, notifyDataManagerChange, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onInsideBlock, onKillCommand, onKillEntity, onRemovedFromWorld, onStruckByLightning, outOfWorld, playFlySound, playSound, playStepSound, playSwimSound, preparePlayerToSpawn, pushOutOfBlocks, read, recalculateSize, remove, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFlag, setGlowing, setHeadRotation, setInLava, setInvisible, setInvulnerable, setItemStackToSlot, setLocationAndAngles, setMotion, setMotion, setMotionMultiplier, setNoGravity, setOnFireFromLava, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSneaking, setSprinting, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldRenderSneaking, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, stopRiding, teleportKeepLoaded, toString, updatePortal, updateRidden, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeId
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getPickedResult, serializeNBT, shouldRiderSit
getCapability, getCapability
public BoatEntity(EntityType<? extends BoatEntity> p_i50129_1_, World p_i50129_2_)
public BoatEntity(World worldIn, double x, double y, double z)
protected boolean canTriggerWalking()
canTriggerWalking
in class Entity
protected void registerData()
registerData
in class Entity
@Nullable public AxisAlignedBB getCollisionBox(Entity entityIn)
getCollisionBox
in class Entity
@Nullable public AxisAlignedBB getCollisionBoundingBox()
getCollisionBoundingBox
in class Entity
public boolean canBePushed()
canBePushed
in class Entity
public double getMountedYOffset()
getMountedYOffset
in class Entity
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
in class Entity
public void onEnterBubbleColumnWithAirAbove(boolean downwards)
onEnterBubbleColumnWithAirAbove
in class Entity
public void applyEntityCollision(Entity entityIn)
applyEntityCollision
in class Entity
public Item getItemBoat()
public void performHurtAnimation()
performHurtAnimation
in class Entity
public boolean canBeCollidedWith()
canBeCollidedWith
in class Entity
public void setPositionAndRotationDirect(double x, double y, double z, float yaw, float pitch, int posRotationIncrements, boolean teleport)
setPositionAndRotationDirect
in class Entity
public Direction getAdjustedHorizontalFacing()
getAdjustedHorizontalFacing
in class Entity
@Nullable protected SoundEvent getPaddleSound()
public void setPaddleState(boolean left, boolean right)
public float getRowingTime(int side, float limbSwing)
public float getWaterLevelAbove()
public float getBoatGlide()
public void updatePassenger(Entity passenger)
updatePassenger
in class Entity
protected void applyYawToEntity(Entity entityToUpdate)
public void applyOrientationToEntity(Entity entityToUpdate)
applyOrientationToEntity
in class Entity
protected void writeAdditional(CompoundNBT compound)
writeAdditional
in class Entity
protected void readAdditional(CompoundNBT compound)
readAdditional
in class Entity
public boolean processInitialInteract(PlayerEntity player, Hand hand)
processInitialInteract
in class Entity
protected void updateFallState(double y, boolean onGroundIn, BlockState state, BlockPos pos)
updateFallState
in class Entity
public boolean getPaddleState(int side)
public void setDamageTaken(float damageTaken)
public float getDamageTaken()
public void setTimeSinceHit(int timeSinceHit)
public int getTimeSinceHit()
public float getRockingAngle(float partialTicks)
public void setForwardDirection(int forwardDirection)
public int getForwardDirection()
public void setBoatType(BoatEntity.Type boatType)
public BoatEntity.Type getBoatType()
protected boolean canFitPassenger(Entity passenger)
canFitPassenger
in class Entity
@Nullable public Entity getControllingPassenger()
getControllingPassenger
in class Entity
public void updateInputs(boolean p_184442_1_, boolean p_184442_2_, boolean p_184442_3_, boolean p_184442_4_)
public IPacket<?> createSpawnPacket()
createSpawnPacket
in class Entity
protected void addPassenger(Entity passenger)
addPassenger
in class Entity