Package net.minecraft.entity.item
Class EntityBoat
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.entity.Entity
-
- net.minecraft.entity.item.EntityBoat
-
- All Implemented Interfaces:
org.teavm.jso.JSObject
public class EntityBoat extends Entity
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Field Summary
-
Fields inherited from class net.minecraft.entity.Entity
addedToChunk, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, fallDistance, field_181016_an, field_181017_ao, field_181018_ap, fireResistance, firstUpdate, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj
-
-
Constructor Summary
Constructors Constructor Description EntityBoat(World worldIn)
EntityBoat(World worldIn, double parDouble1, double parDouble2, double parDouble3)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeCollidedWith()
+ Returns true if other Entities should be prevented from moving through this Entity.boolean
canBePushed()
+ Returns true if this entity should push and be pushed by other entities when colliding.protected boolean
canTriggerWalking()
+ returns if this entity triggers Block.onEntityWalking on the blocks they walk on.protected void
entityInit()
AxisAlignedBB
getCollisionBoundingBox()
+ Returns the collision bounding box for this entityAxisAlignedBB
getCollisionBox(Entity entity)
+ Returns a boundingBox used to collide the entity with other entities and blocks.float
getDamageTaken()
+ Gets the damage taken from the last hit.int
getForwardDirection()
+ Gets the forward direction of the entity.double
getMountedYOffset()
+ Returns the Y offset from the entity's position for any entity riding this one.int
getTimeSinceHit()
+ Gets the time since the last hit.boolean
interactFirst(EntityPlayer entityplayer)
+ First layer of player interactionvoid
onUpdate()
+ Called to update the entity's position/logic.void
performHurtAnimation()
+ Setups the entity to do the hurt animation.protected void
readEntityFromNBT(NBTTagCompound var1)
+ (abstract) Protected helper method to read subclass entity data from NBT.void
setDamageTaken(float parFloat1)
+ Sets the damage taken from the last hit.void
setForwardDirection(int parInt1)
+ Sets the forward direction of the entity.void
setIsBoatEmpty(boolean parFlag)
+ true if no player in boatvoid
setPositionAndRotation2(double d0, double d1, double d2, float f, float f1, int i, boolean flag)
void
setTimeSinceHit(int parInt1)
+ Sets the time to count down from since the last time entity was hit.void
setVelocity(double d0, double d1, double d2)
+ Sets the velocity to the args.protected void
updateFallState(double d0, boolean flag, Block var4, BlockPos var5)
void
updateRiderPosition()
protected void
writeEntityToNBT(NBTTagCompound var1)
+ (abstract) Protected helper method to write subclass entity data to NBT.-
Methods inherited from class net.minecraft.entity.Entity
addChatMessage, addEntityCrashInfo, addToPlayerScore, addVelocity, applyEnchantments, applyEntityCollision, attackEntityFrom, canAttackWithItem, canCommandSenderUseCommand, canRenderOnFire, clientUpdateEntityNBT, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, doBlockCollisions, doesEntityNotTriggerPressurePlate, dropItem, dropItemWithOffset, entityDropItem, equals, extinguish, fall, fromNBT, func_181012_aH, func_181013_g, func_181014_aG, func_181015_d, getAir, getAlwaysRenderNameTag, getAlwaysRenderNameTagForRender, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCommandSenderEntity, getCustomNameTag, getDataWatcher, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSqToCenter, getDistanceSqToEntity, getDistanceToEntity, getEntityBoundingBox, getEntityId, getEntityString, getEntityWorld, getExplosionResistance, getEyeHeight, getFlag, getHorizontalFacing, getHoverEvent, getInventory, getLook, getLookVec, getMaxFallHeight, getMaxInPortalTime, getName, getNBTTagCompound, getParts, getPortalCooldown, getPosition, getPositionEyes, getPositionVector, getRotationYawHead, getSplashSound, getSwimSound, getUniqueID, getVectorForRotation, getYOffset, handleStatusUpdate, handleWaterMovement, hasCustomName, hashCode, hitByEntity, interactAt, isBurning, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToExplosions, isImmuneToFire, isInLava, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isOutsideBorder, isPushedByWater, isRiding, isSilent, isSneaking, isSprinting, isWet, kill, loadPluginData, makePluginData, mountEntity, moveEntity, moveFlying, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, onChunkLoad, onCollideWithPlayer, onDataWatcherUpdate, onEntityUpdate, onKillCommand, onKillEntity, onStruckByLightning, playSound, playStepSound, preparePlayerToSpawn, pushOutOfBlocks, rayTrace, readFromNBT, replaceItemInInventory, resetHeight, sendCommandFeedback, setAir, setAlwaysRenderNameTag, setAngles, setBeenAttacked, setCurrentItemOrArmor, setCustomNameTag, setDead, setEating, setEntityBoundingBox, setEntityId, setFire, setFlag, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setOutsideBorder, setPosition, setPositionAndRotation, setPositionAndUpdate, setRotation, setRotationYawHead, setSilent, setSize, setSneaking, setSprinting, setWorld, shouldSetPosAfterLoading, spawnRunningParticles, toNBT, toString, travelToDimension, updateRidden, verifyExplosion, writeMountToNBT, writeToNBT, writeToNBTOptional
-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
-
-
-
Method Detail
-
canTriggerWalking
protected boolean canTriggerWalking()
+ returns if this entity triggers Block.onEntityWalking on the blocks they walk on. used for spiders and wolves to prevent them from trampling crops- Overrides:
canTriggerWalking
in classEntity
-
entityInit
protected void entityInit()
- Specified by:
entityInit
in classEntity
-
getCollisionBox
public AxisAlignedBB getCollisionBox(Entity entity)
+ Returns a boundingBox used to collide the entity with other entities and blocks. This enables the entity to be pushable on contact, like boats or minecarts.- Overrides:
getCollisionBox
in classEntity
-
getCollisionBoundingBox
public AxisAlignedBB getCollisionBoundingBox()
+ Returns the collision bounding box for this entity- Overrides:
getCollisionBoundingBox
in classEntity
-
canBePushed
public boolean canBePushed()
+ Returns true if this entity should push and be pushed by other entities when colliding.- Overrides:
canBePushed
in classEntity
-
getMountedYOffset
public double getMountedYOffset()
+ Returns the Y offset from the entity's position for any entity riding this one.- Overrides:
getMountedYOffset
in classEntity
-
performHurtAnimation
public void performHurtAnimation()
+ Setups the entity to do the hurt animation. Only used by packets in multiplayer.- Overrides:
performHurtAnimation
in classEntity
-
canBeCollidedWith
public boolean canBeCollidedWith()
+ Returns true if other Entities should be prevented from moving through this Entity.- Overrides:
canBeCollidedWith
in classEntity
-
setPositionAndRotation2
public void setPositionAndRotation2(double d0, double d1, double d2, float f, float f1, int i, boolean flag)
- Overrides:
setPositionAndRotation2
in classEntity
-
setVelocity
public void setVelocity(double d0, double d1, double d2)
+ Sets the velocity to the args. Args: x, y, z- Overrides:
setVelocity
in classEntity
-
onUpdate
public void onUpdate()
+ Called to update the entity's position/logic.
-
updateRiderPosition
public void updateRiderPosition()
- Overrides:
updateRiderPosition
in classEntity
-
writeEntityToNBT
protected void writeEntityToNBT(NBTTagCompound var1)
+ (abstract) Protected helper method to write subclass entity data to NBT.- Specified by:
writeEntityToNBT
in classEntity
-
readEntityFromNBT
protected void readEntityFromNBT(NBTTagCompound var1)
+ (abstract) Protected helper method to read subclass entity data from NBT.- Specified by:
readEntityFromNBT
in classEntity
-
interactFirst
public boolean interactFirst(EntityPlayer entityplayer)
+ First layer of player interaction- Overrides:
interactFirst
in classEntity
-
updateFallState
protected void updateFallState(double d0, boolean flag, Block var4, BlockPos var5)
- Overrides:
updateFallState
in classEntity
-
setDamageTaken
public void setDamageTaken(float parFloat1)
+ Sets the damage taken from the last hit.
-
getDamageTaken
public float getDamageTaken()
+ Gets the damage taken from the last hit.
-
setTimeSinceHit
public void setTimeSinceHit(int parInt1)
+ Sets the time to count down from since the last time entity was hit.
-
getTimeSinceHit
public int getTimeSinceHit()
+ Gets the time since the last hit.
-
setForwardDirection
public void setForwardDirection(int parInt1)
+ Sets the forward direction of the entity.
-
getForwardDirection
public int getForwardDirection()
+ Gets the forward direction of the entity.
-
setIsBoatEmpty
public void setIsBoatEmpty(boolean parFlag)
+ true if no player in boat
-
-