public class EntityBoat extends Entity
Modifier and Type | Class and Description |
---|---|
static class |
EntityBoat.Status |
static class |
EntityBoat.Type |
addedToChunk, cachedUniqueIdString, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataManager, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, fireResistance, firstUpdate, forceSpawn, glowing, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastPortalPos, lastPortalVec, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj
Constructor and Description |
---|
EntityBoat(World worldIn) |
EntityBoat(World worldIn,
double x,
double y,
double z) |
Modifier and Type | Method and Description |
---|---|
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() |
protected void |
entityInit() |
EnumFacing |
getAdjustedHorizontalFacing() |
static float |
getBlockLiquidHeight(IBlockState p_184456_0_,
IBlockAccess p_184456_1_,
BlockPos p_184456_2_) |
float |
getBoatGlide() |
EntityBoat.Type |
getBoatType() |
AxisAlignedBB |
getCollisionBoundingBox() |
AxisAlignedBB |
getCollisionBox(Entity entityIn) |
Entity |
getControllingPassenger() |
float |
getDamageTaken() |
int |
getForwardDirection() |
Item |
getItemBoat() |
static float |
getLiquidHeight(IBlockState p_184452_0_,
IBlockAccess p_184452_1_,
BlockPos p_184452_2_) |
double |
getMountedYOffset() |
boolean |
getPaddleState(int p_184457_1_) |
float |
getRowingTime(int p_184448_1_,
float limbSwing) |
int |
getTimeSinceHit() |
float |
getWaterLevelAbove() |
void |
onUpdate() |
void |
performHurtAnimation() |
boolean |
processInitialInteract(EntityPlayer player,
ItemStack stack,
EnumHand hand) |
protected void |
readEntityFromNBT(NBTTagCompound compound) |
void |
setBoatType(EntityBoat.Type boatType) |
void |
setDamageTaken(float damageTaken) |
void |
setForwardDirection(int forwardDirection) |
void |
setPaddleState(boolean p_184445_1_,
boolean p_184445_2_) |
void |
setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean teleport) |
void |
setTimeSinceHit(int timeSinceHit) |
protected void |
updateFallState(double y,
boolean onGroundIn,
IBlockState 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 |
writeEntityToNBT(NBTTagCompound compound) |
addChatMessage, addEntityCrashInfo, addPassenger, addTag, addToPlayerScore, addTrackingPlayer, addVelocity, applyEnchantments, applyPlayerInteraction, canBeAttackedWithItem, canBeRidden, canCommandSenderUseCommand, canPassengerSteer, canRenderOnFire, canRiderInteract, changeDimension, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, deserializeNBT, dismountRidingEntity, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fall, getAir, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBrightness, getBrightnessForRender, getCachedUniqueIdString, getCapability, getCollisionBorderSize, getCommandSenderEntity, getCommandStats, getCustomNameTag, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityData, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getFlag, getHeldEquipment, getHorizontalFacing, getHoverEvent, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getName, getParts, getPassengers, getPersistentID, getPickedResult, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getPushReaction, getRecursivePassengers, getRecursivePassengersByType, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getRotationYawHead, getServer, getSoundCategory, getSplashSound, getSwimSound, getTags, getTeam, getTeleportDirection, getUniqueID, getVectorForRotation, getYOffset, handleStatusUpdate, handleWaterMovement, hasCapability, hasCustomName, hashCode, hitByEntity, ignoreItemEntityData, isBeingRidden, isBurning, isCreatureType, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isGlowing, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isNonBoss, isOffsetPositionInLiquid, isOnSameTeam, isOnScoreboardTeam, isOutsideBorder, isPassenger, isPushedByWater, isRiding, isRidingOrBeingRiddenBy, isRidingSameEntity, isSilent, isSneaking, isSpectatedByPlayer, isSprinting, isWet, kill, moveEntity, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, notifyDataManagerChange, onChunkLoad, onCollideWithPlayer, onEntityUpdate, onKillCommand, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, resetEntityId, resetHeight, resetPositionToBB, sendCommandFeedback, serializeNBT, setAir, setAlwaysRenderNameTag, setAngles, setBeenAttacked, setCommandStat, setCommandStats, setCustomNameTag, setDead, setDropItemsWhenDead, setEntityBoundingBox, setEntityId, setEntityInvulnerable, setFire, setFlag, setGlowing, setInvisible, setInWeb, setItemStackToSlot, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPortal, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSize, setSneaking, setSprinting, setUniqueId, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, toString, updateRidden, verifyExplosion, writeToNBT, writeToNBTAtomically, writeToNBTOptional
public EntityBoat(World worldIn)
public EntityBoat(World worldIn, double x, double y, double z)
protected boolean canTriggerWalking()
canTriggerWalking
in class Entity
protected void entityInit()
entityInit
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 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 EnumFacing getAdjustedHorizontalFacing()
getAdjustedHorizontalFacing
in class Entity
public void setPaddleState(boolean p_184445_1_, boolean p_184445_2_)
public float getRowingTime(int p_184448_1_, float limbSwing)
public float getWaterLevelAbove()
public float getBoatGlide()
public static float getBlockLiquidHeight(IBlockState p_184456_0_, IBlockAccess p_184456_1_, BlockPos p_184456_2_)
public static float getLiquidHeight(IBlockState p_184452_0_, IBlockAccess p_184452_1_, BlockPos p_184452_2_)
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 writeEntityToNBT(NBTTagCompound compound)
writeEntityToNBT
in class Entity
protected void readEntityFromNBT(NBTTagCompound compound)
readEntityFromNBT
in class Entity
public boolean processInitialInteract(EntityPlayer player, @Nullable ItemStack stack, EnumHand hand)
processInitialInteract
in class Entity
protected void updateFallState(double y, boolean onGroundIn, IBlockState state, BlockPos pos)
updateFallState
in class Entity
public boolean getPaddleState(int p_184457_1_)
public void setDamageTaken(float damageTaken)
public float getDamageTaken()
public void setTimeSinceHit(int timeSinceHit)
public int getTimeSinceHit()
public void setForwardDirection(int forwardDirection)
public int getForwardDirection()
public void setBoatType(EntityBoat.Type boatType)
public EntityBoat.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_)