public class BoatEntity extends Entity
修飾子とタイプ | クラスと説明 |
---|---|
static class |
BoatEntity.Status |
static class |
BoatEntity.Type |
Entity.IMoveCallback
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, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, removed, rideCooldown, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, submergedHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, world
DUMMY
コンストラクタと説明 |
---|
BoatEntity(EntityType<? extends BoatEntity> p_i50129_1_,
World p_i50129_2_) |
BoatEntity(World worldIn,
double x,
double y,
double z) |
修飾子とタイプ | メソッドと説明 |
---|---|
protected void |
addPassenger(Entity passenger) |
void |
applyEntityCollision(Entity entityIn)
Applies a velocity to the entities, to push them away from eachother.
|
void |
applyOrientationToEntity(Entity entityToUpdate)
Applies this entity's orientation (pitch/yaw) to another entity.
|
protected void |
applyYawToEntity(Entity entityToUpdate)
Applies this boat's yaw to the given entity.
|
boolean |
attackEntityFrom(DamageSource source,
float amount)
Called when the entity is attacked.
|
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 |
canFitPassenger(Entity passenger) |
protected boolean |
canTriggerWalking() |
IPacket<?> |
createSpawnPacket() |
Direction |
getAdjustedHorizontalFacing()
Gets the horizontal facing direction of this Entity, adjusted to take specially-treated entity types into account.
|
float |
getBoatGlide()
Decides how much the boat should be gliding on the land (based on any slippery blocks)
|
BoatEntity.Type |
getBoatType() |
AxisAlignedBB |
getCollisionBoundingBox()
Returns the solid collision bounding box for this entity.
|
AxisAlignedBB |
getCollisionBox(Entity entityIn)
Returns a boundingBox used to collide the entity with other entities and blocks.
|
Entity |
getControllingPassenger()
For vehicles, the first passenger is generally considered the controller and "drives" the vehicle.
|
float |
getDamageTaken()
Gets the damage taken from the last hit.
|
int |
getForwardDirection()
Gets the forward direction of the entity.
|
Item |
getItemBoat() |
double |
getMountedYOffset()
Returns the Y offset from the entity's position for any entity riding this one.
|
protected SoundEvent |
getPaddleSound() |
boolean |
getPaddleState(int side) |
float |
getRockingAngle(float partialTicks) |
float |
getRowingTime(int side,
float limbSwing) |
int |
getTimeSinceHit()
Gets the time since the last hit.
|
float |
getWaterLevelAbove() |
void |
onEnterBubbleColumnWithAirAbove(boolean downwards) |
void |
performHurtAnimation()
Setups the entity to do the hurt animation.
|
boolean |
processInitialInteract(PlayerEntity player,
Hand hand) |
protected void |
readAdditional(CompoundNBT compound)
(abstract) Protected helper method to read subclass entity data from NBT.
|
protected void |
registerData() |
void |
setBoatType(BoatEntity.Type boatType) |
void |
setDamageTaken(float damageTaken)
Sets the damage taken from the last hit.
|
void |
setForwardDirection(int forwardDirection)
Sets the forward direction of the entity.
|
void |
setPaddleState(boolean left,
boolean right) |
void |
setPositionAndRotationDirect(double x,
double y,
double z,
float yaw,
float pitch,
int posRotationIncrements,
boolean teleport)
Sets a target for the client to interpolate towards over the next few ticks
|
void |
setTimeSinceHit(int timeSinceHit)
Sets the time to count down from since the last time entity was hit.
|
void |
tick()
Called to update the entity's position/logic.
|
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, calculateUpVector, canBeAttackedWithItem, canBeRidden, canBeRiddenInWater, canExplosionDestroyBlock, canPassengerSteer, canRenderOnFire, canSwim, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkDespawn, collideBoundingBox, collideBoundingBoxHeuristically, copyDataFromOld, copyLocationAndAnglesFrom, createRunningParticles, dealFireDamage, decrementTimeUntilPortal, detach, determineNextStepDistance, doBlockCollisions, doesEntityNotTriggerPressurePlate, doWaterSplashEffect, entityDropItem, entityDropItem, entityDropItem, entityDropItem, equals, extinguish, fillCrashReport, forceSetPosition, func_225513_by_, func_225514_a_, func_226265_a_, func_226266_a_, func_226276_cg_, getAir, getAllowedMovement, getAlwaysRenderNameTagForRender, getArmorInventoryList, getBoundingBox, getBoundingBox, getBrightness, getCachedUniqueIdString, getCollisionBorderSize, getCommandSource, getCustomName, getDataManager, getDisplayName, getDistance, getDistanceSq, getDistanceSq, getDistanceSq, getEntityId, getEntityString, getEntityWorld, getEquipmentAndArmor, getExplosionResistance, getEyeHeight, getEyeHeight, getEyeHeight, getEyePosition, getFireImmuneTicks, getFireTimer, getFlag, getForward, getHeight, getHeldEquipment, getHighspeedSplashSound, getHorizontalFacing, getHoverEvent, getJumpFactor, getLastPortalVec, getLook, getLookVec, getLowestRidingEntity, getMaxAir, getMaxFallHeight, getMaxInPortalTime, getMirroredYaw, getMotion, getName, getOnPosition, getPassengers, getPermissionLevel, getPersistentData, getPitch, getPitchYaw, getPortalCooldown, getPose, getPosition, getPositionUnderneath, getPositionVec, getPositionVector, getPosX, getPosXRandom, getPosXWidth, getPosY, getPosYEye, getPosYHeight, getPosYRandom, getPosZ, getPosZRandom, getPosZWidth, getPushReaction, getRecursivePassengers, getRenderBoundingBox, getRenderDistanceWeight, getRidingEntity, getRotatedYaw, getRotationYawHead, getScoreboardName, getServer, getSize, getSoundCategory, getSpeedFactor, getSplashSound, getSubmergedHeight, getSwimSound, getTags, getTeam, getTeamColor, getTeleportDirection, getType, getUniqueID, getUpVector, getVectorForRotation, getWidth, getYaw, getYOffset, handleFluidAcceleration, handlePistonMovement, handleStatusUpdate, handleWaterMovement, hasCustomName, hashCode, hasNoGravity, hasPermissionLevel, hitByEntity, horizontalMag, ignoreItemEntityData, isActualySwimming, isAddedToWorld, isAlive, isBeingRidden, isBurning, isCrouching, isCustomNameVisible, isDescending, isDiscrete, 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, isShiftKeyDown, isSilent, isSpectatedByPlayer, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isVisuallySwimming, isWet, lookAt, makeFlySound, markVelocityChanged, move, moveForced, moveRelative, moveToBlockPosAndAngles, newDoubleNBTList, newFloatNBTList, notifyDataManagerChange, onAddedToWorld, onCollideWithPlayer, onEnterBubbleColumn, onInsideBlock, onKillCommand, onKillEntity, onLivingFall, onRemovedFromWorld, onStruckByLightning, outOfWorld, pick, playFlySound, playSound, playStepSound, playSwimSound, preparePlayerToSpawn, pushOutOfBlocks, read, recalculateSize, recenterBoundingBox, remove, remove, removePassenger, removePassengers, removeTag, removeTrackingPlayer, replaceItemInInventory, resetPositionToBB, revive, rotateTowards, sendMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFire, setFireTimer, setFlag, setGlowing, setHeadRotation, setInLava, setInvisible, setInvulnerable, setItemStackToSlot, setLocationAndAngles, setMotion, setMotion, setMotionMultiplier, setNoGravity, setOnFireFromLava, setPacketCoordinates, setPortal, setPose, setPosition, setPositionAndRotation, setPositionAndUpdate, setPositionNonDirty, setRawPosition, setRenderDistanceWeight, setRenderYawOffset, setRotation, setRotationYawHead, setSilent, setSneaking, setSprinting, setSwimming, setUniqueId, setVelocity, setWorld, shouldReceiveErrors, shouldReceiveFeedback, shouldSetPosAfterLoading, spawnRunningParticles, startRiding, startRiding, stopRiding, teleportKeepLoaded, toString, updatePortal, updateRidden, updateSwimming, writeUnlessPassenger, writeUnlessRemoved, writeWithoutTypeId
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
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
クラス内 Entity
protected void registerData()
registerData
クラス内 Entity
@Nullable public AxisAlignedBB getCollisionBox(Entity entityIn)
getCollisionBox
クラス内 Entity
@Nullable public AxisAlignedBB getCollisionBoundingBox()
#width
and #height
.getCollisionBoundingBox
クラス内 Entity
getEntityBoundingBox
public boolean canBePushed()
canBePushed
クラス内 Entity
public double getMountedYOffset()
getMountedYOffset
クラス内 Entity
public boolean attackEntityFrom(DamageSource source, float amount)
attackEntityFrom
クラス内 Entity
public void onEnterBubbleColumnWithAirAbove(boolean downwards)
onEnterBubbleColumnWithAirAbove
クラス内 Entity
public void applyEntityCollision(Entity entityIn)
applyEntityCollision
クラス内 Entity
public Item getItemBoat()
public void performHurtAnimation()
performHurtAnimation
クラス内 Entity
public boolean canBeCollidedWith()
canBeCollidedWith
クラス内 Entity
public void setPositionAndRotationDirect(double x, double y, double z, float yaw, float pitch, int posRotationIncrements, boolean teleport)
setPositionAndRotationDirect
クラス内 Entity
public Direction getAdjustedHorizontalFacing()
getAdjustedHorizontalFacing
クラス内 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
クラス内 Entity
protected void applyYawToEntity(Entity entityToUpdate)
public void applyOrientationToEntity(Entity entityToUpdate)
applyOrientationToEntity
クラス内 Entity
protected void writeAdditional(CompoundNBT compound)
writeAdditional
クラス内 Entity
protected void readAdditional(CompoundNBT compound)
readAdditional
クラス内 Entity
public boolean processInitialInteract(PlayerEntity player, Hand hand)
processInitialInteract
クラス内 Entity
protected void updateFallState(double y, boolean onGroundIn, BlockState state, BlockPos pos)
updateFallState
クラス内 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
クラス内 Entity
@Nullable public Entity getControllingPassenger()
getControllingPassenger
クラス内 Entity
public void updateInputs(boolean p_184442_1_, boolean p_184442_2_, boolean p_184442_3_, boolean p_184442_4_)
public IPacket<?> createSpawnPacket()
createSpawnPacket
クラス内 Entity
protected void addPassenger(Entity passenger)
addPassenger
クラス内 Entity