类 AbstractBoat
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
net.minecraft.world.entity.Entity
net.minecraft.world.entity.vehicle.VehicleEntity
net.minecraft.world.entity.vehicle.AbstractBoat
- 所有已实现的接口:
SyncedDataHolder
,Leashable
,EntityAccess
,Nameable
,ScoreHolder
,ICapabilityProvider
,ICapabilityProviderImpl<Entity>
,ICapabilitySerializable<CompoundTag>
,IForgeAbstractBoat
,IForgeEntity
,INBTSerializable<CompoundTag>
- 直接已知子类:
AbstractChestBoat
,Boat
,Raft
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReason
从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
从接口继承的嵌套类/接口 net.minecraft.world.entity.Leashable
Leashable.LeashData
-
字段概要
字段修饰符和类型字段说明static final int
private float
private float
private boolean
private float
private static final EntityDataAccessor
<Integer> private static final EntityDataAccessor
<Boolean> private static final EntityDataAccessor
<Boolean> private float
private boolean
private boolean
private boolean
private boolean
private float
private boolean
private float
private double
private Leashable.LeashData
private int
private double
private double
private double
private double
private double
private AbstractBoat.Status
private float
static final int
static final int
static final double
private static final float
private final float[]
private AbstractBoat.Status
private static final int
private double
从类继承的字段 net.minecraft.world.entity.vehicle.VehicleEntity
DATA_ID_DAMAGE, DATA_ID_HURT, DATA_ID_HURTDIR
从类继承的字段 net.minecraft.world.entity.Entity
BASE_SAFE_FALL_DISTANCE, BASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, CONTENTS_SLOT_INDEX, DATA_POSE, DATA_SHARED_FLAGS_ID, DEFAULT_BB_HEIGHT, DEFAULT_BB_WIDTH, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2, DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5, DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0, ENTITY_COUNTER, entityData, fallDistance, firstTick, FLAG_FALL_FLYING, FLAG_GLOWING, FLAG_ONFIRE, fluidHeight, flyDist, forgeFluidTypeHeight, FREEZE_HURT_FREQUENCY, hasImpulse, horizontalCollision, hurtMarked, ID_TAG, invulnerableTime, isInPowderSnow, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noPhysics, PASSENGERS_TAG, portalProcess, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, wasEyeInWater, wasInPowderSnow, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld
从接口继承的字段 net.minecraft.world.entity.Leashable
LEASH_ELASTIC_DIST, LEASH_TAG, LEASH_TOO_FAR_DIST
从接口继承的字段 net.minecraft.world.scores.ScoreHolder
WILDCARD, WILDCARD_NAME
-
构造器概要
构造器构造器说明AbstractBoat
(EntityType<? extends AbstractBoat> p_361501_, Level p_362983_, Supplier<Item> p_365566_) -
方法概要
修饰符和类型方法说明protected void
addAdditionalSaveData
(CompoundTag p_367702_) void
animateHurt
(float p_365475_) protected boolean
canAddPassenger
(Entity p_366021_) boolean
void
boolean
canCollideWith
(Entity p_364219_) static boolean
canVehicleCollide
(Entity p_362540_, Entity p_368220_) protected void
checkFallDamage
(double p_361830_, boolean p_361999_, BlockState p_365352_, BlockPos p_367645_) private boolean
protected void
clampRotation
(Entity p_365128_) private void
protected void
defineSynchedData
(SynchedEntityData.Builder p_362019_) void
elasticRangeLeashBehaviour
(Entity p_370209_, float p_361454_) private void
float
getBubbleAngle
(float p_361198_) private int
protected double
getDismountLocationForPassenger
(LivingEntity p_367609_) protected final Item
float
protected int
protected Entity.MovementEmission
protected SoundEvent
boolean
getPaddleState
(int p_363453_) protected Vec3
getPassengerAttachmentPoint
(Entity p_369514_, EntityDimensions p_366303_, float p_367794_) final ItemStack
getRelativePortalPosition
(Direction.Axis p_368283_, BlockUtil.FoundRectangle p_365178_) float
getRowingTime
(int p_364511_, float p_368779_) protected float
private AbstractBoat.Status
float
boolean
hasEnoughSpaceFor
(Entity p_363801_) interact
(Player p_367363_, InteractionHand p_362250_) boolean
boolean
private AbstractBoat.Status
boolean
double
float
double
float
double
void
lerpTo
(double p_368642_, double p_361096_, double p_368840_, float p_365907_, float p_369065_, int p_364776_) void
onAboveBubbleCol
(boolean p_360800_) void
onPassengerTurned
(Entity p_363923_) protected void
positionRider
(Entity p_362738_, Entity.MoveFunction p_365234_) void
protected void
readAdditionalSaveData
(CompoundTag p_361667_) void
remove
(Entity.RemovalReason p_365927_) protected abstract double
rideHeight
(EntityDimensions p_363309_) private void
setBubbleTime
(int p_362638_) void
setInitialPos
(double p_364862_, double p_363329_, double p_361885_) void
setInput
(boolean p_370030_, boolean p_363750_, boolean p_364020_, boolean p_369506_) void
setLeashData
(Leashable.LeashData p_361544_) void
setPaddleState
(boolean p_364965_, boolean p_365347_) void
tick()
private void
private void
tickLerp()
从类继承的方法 net.minecraft.world.entity.vehicle.VehicleEntity
destroy, destroy, getDamage, getDimensionChangingDelay, getHurtDir, getHurtTime, hurtClient, hurtServer, ignoreExplosion, setDamage, setHurtDir, setHurtTime, shouldSourceDestroy
从类继承的方法 net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, absRotateTo, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyEffectsFromBlocks, applyEffectsFromBlocks, applyGravity, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canBeHitByProjectile, canControlVehicle, canFreeze, canRide, canSpawnSprintParticle, canSprint, canTeleport, canTrample, canUpdate, canUpdate, canUsePortal, captureDrops, captureDrops, causeFallDamage, checkBelowWorld, checkDespawn, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, considersEntityAsAlly, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStackForNameResolution, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doCheckFallDamage, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, forceSetRotation, fudgePositionAfterSizeChange, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockSpeedFactor, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDefaultPassengerAttachmentPoint, getDeltaMovement, getDimensions, getDirection, getDisplayName, getEncodeId, getEntityData, getEyeHeight, getEyeHeight, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getGravity, getHandHoldingItemAngle, getId, getInBlockState, getIndirectPassengers, getInputVector, getKnownMovement, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getLootTable, getMaxAirSupply, getMaxFallDistance, getMaxHeightFluidType, getName, getNearestViewDirection, getOnPos, getOnPos, getOnPosLegacy, getPassengerRidingPosition, getPassengers, getPassengersAndSelf, getPercentFrozen, getPersistentData, getPickRadius, getPistonPushReaction, getPortalCooldown, getPose, getPosition, getPositionCodec, getPreciseBodyRotation, getPrimaryStepSoundBlockPos, getRandom, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSlot, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getTypeName, getUpVector, getUUID, getVehicle, getVehicleAttachmentPoint, getViewScale, getViewVector, getViewXRot, getViewYRot, getVisualRotationYInDegrees, getWeaponItem, getX, getX, getXRot, getXRot, getY, getY, getYHeadRot, getYRot, getYRot, getZ, getZ, handleDamageEvent, handleEntityEvent, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPose, hurt, hurtOrSimulate, igniteForSeconds, igniteForTicks, interactAt, is, isAddedToWorld, isAffectedByBlocks, isAlive, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByClient, isControlledByLocalInstance, isControlledByOrIsLocalPlayer, isCrouching, isCurrentlyGlowing, isCustomNameVisible, isDescending, isDiscrete, isEffectiveAi, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableToBase, isInWall, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterOrSwimmable, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isVehicle, isVisuallyCrawling, isVisuallySwimming, kill, killedEntity, lavaHurt, lerpHeadTo, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, lookAt, makeBoundingBox, makeBoundingBox, makeStuckInBlock, markHurt, maxUpStep, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, oldPosition, onAddedToWorld, onBelowWorld, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onRemoval, onRemovedFromWorld, onSyncedDataUpdated, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, processFlappingMovement, processPortalCooldown, push, push, reapplyPosition, recordMovementThroughBlocks, recreateFromPacket, refreshDimensions, registryAccess, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rideTick, rotate, save, saveAsPassenger, saveWithoutId, setAirSupply, setAsInsidePortal, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setLevel, setLevelCallback, setNoGravity, setOldPos, setOldPosAndRot, setOldPosAndRot, setOldRot, setOnGround, setOnGroundWithMovement, setOnGroundWithMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSprinting, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYBodyRot, setYHeadRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldPlayLavaHurtSound, shouldRender, shouldRenderAtSqrDistance, shouldShowName, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, syncPacketPositionCodec, teleport, teleportRelative, teleportSetPosition, teleportTo, teleportTo, thunderHit, toString, touchingUnloadedChunk, trackingPosition, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSound
从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider
deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
从接口继承的方法 net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
从接口继承的方法 net.minecraftforge.common.extensions.IForgeAbstractBoat
canBoatInFluid, canBoatInFluid, shouldUpdateFluidWhileRiding
从接口继承的方法 net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canSwimInFluidType, deserializeNBT, getClassification, getFluidFallDistanceModifier, getFluidMotionScale, getParts, getSoundFromFluidType, hasCustomOutlineRendering, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, serializeNBT, shouldRiderSit, shouldUpdateFluidWhileBoating
从接口继承的方法 net.minecraft.world.entity.Leashable
canBeLeashed, canHaveALeashAttachedToIt, closeRangeLeashBehaviour, dropLeash, getLeashHolder, handleLeashAtDistance, isLeashed, leashTooFarBehaviour, mayBeLeashed, onLeashRemoved, readLeashData, removeLeash, setDelayedLeashHolderId, setLeashedTo, writeLeashData
从接口继承的方法 net.minecraft.world.scores.ScoreHolder
getFeedbackDisplayName
-
字段详细资料
-
DATA_ID_PADDLE_LEFT
-
DATA_ID_PADDLE_RIGHT
-
DATA_ID_BUBBLE_TIME
-
PADDLE_LEFT
public static final int PADDLE_LEFT- 另请参阅:
-
PADDLE_RIGHT
public static final int PADDLE_RIGHT- 另请参阅:
-
TIME_TO_EJECT
private static final int TIME_TO_EJECT- 另请参阅:
-
PADDLE_SPEED
private static final float PADDLE_SPEED- 另请参阅:
-
PADDLE_SOUND_TIME
public static final double PADDLE_SOUND_TIME- 另请参阅:
-
BUBBLE_TIME
public static final int BUBBLE_TIME- 另请参阅:
-
paddlePositions
private final float[] paddlePositions -
invFriction
private float invFriction -
outOfControlTicks
private float outOfControlTicks -
deltaRotation
private float deltaRotation -
lerpSteps
private int lerpSteps -
lerpX
private double lerpX -
lerpY
private double lerpY -
lerpZ
private double lerpZ -
lerpYRot
private double lerpYRot -
lerpXRot
private double lerpXRot -
inputLeft
private boolean inputLeft -
inputRight
private boolean inputRight -
inputUp
private boolean inputUp -
inputDown
private boolean inputDown -
waterLevel
private double waterLevel -
landFriction
private float landFriction -
status
-
oldStatus
-
lastYd
private double lastYd -
isAboveBubbleColumn
private boolean isAboveBubbleColumn -
bubbleColumnDirectionIsDown
private boolean bubbleColumnDirectionIsDown -
bubbleMultiplier
private float bubbleMultiplier -
bubbleAngle
private float bubbleAngle -
bubbleAngleO
private float bubbleAngleO -
leashData
-
dropItem
-
-
构造器详细资料
-
AbstractBoat
public AbstractBoat(EntityType<? extends AbstractBoat> p_361501_, Level p_362983_, Supplier<Item> p_365566_)
-
-
方法详细资料
-
setInitialPos
public void setInitialPos(double p_364862_, double p_363329_, double p_361885_) -
getMovementEmission
- 覆盖:
getMovementEmission
在类中Entity
-
defineSynchedData
- 覆盖:
defineSynchedData
在类中VehicleEntity
-
canCollideWith
- 覆盖:
canCollideWith
在类中Entity
-
canVehicleCollide
-
canBeCollidedWith
public boolean canBeCollidedWith()- 覆盖:
canBeCollidedWith
在类中Entity
-
isPushable
public boolean isPushable()- 覆盖:
isPushable
在类中Entity
-
getRelativePortalPosition
- 覆盖:
getRelativePortalPosition
在类中Entity
-
rideHeight
-
getPassengerAttachmentPoint
protected Vec3 getPassengerAttachmentPoint(Entity p_369514_, EntityDimensions p_366303_, float p_367794_) - 覆盖:
getPassengerAttachmentPoint
在类中Entity
-
onAboveBubbleCol
public void onAboveBubbleCol(boolean p_360800_) - 覆盖:
onAboveBubbleCol
在类中Entity
-
push
-
animateHurt
public void animateHurt(float p_365475_) - 覆盖:
animateHurt
在类中Entity
-
isPickable
public boolean isPickable()- 覆盖:
isPickable
在类中Entity
-
cancelLerp
public void cancelLerp()- 覆盖:
cancelLerp
在类中Entity
-
lerpTo
public void lerpTo(double p_368642_, double p_361096_, double p_368840_, float p_365907_, float p_369065_, int p_364776_) -
lerpTargetX
public double lerpTargetX()- 覆盖:
lerpTargetX
在类中Entity
-
lerpTargetY
public double lerpTargetY()- 覆盖:
lerpTargetY
在类中Entity
-
lerpTargetZ
public double lerpTargetZ()- 覆盖:
lerpTargetZ
在类中Entity
-
lerpTargetXRot
public float lerpTargetXRot()- 覆盖:
lerpTargetXRot
在类中Entity
-
lerpTargetYRot
public float lerpTargetYRot()- 覆盖:
lerpTargetYRot
在类中Entity
-
getMotionDirection
- 覆盖:
getMotionDirection
在类中Entity
-
tick
public void tick() -
tickBubbleColumn
private void tickBubbleColumn() -
getPaddleSound
-
tickLerp
private void tickLerp() -
setPaddleState
public void setPaddleState(boolean p_364965_, boolean p_365347_) -
getRowingTime
public float getRowingTime(int p_364511_, float p_368779_) -
getLeashData
- 指定者:
getLeashData
在接口中Leashable
-
setLeashData
- 指定者:
setLeashData
在接口中Leashable
-
getLeashOffset
- 覆盖:
getLeashOffset
在类中Entity
-
elasticRangeLeashBehaviour
- 指定者:
elasticRangeLeashBehaviour
在接口中Leashable
-
getStatus
-
getWaterLevelAbove
public float getWaterLevelAbove() -
getGroundFriction
public float getGroundFriction() -
checkInWater
private boolean checkInWater() -
isUnderwater
-
getDefaultGravity
protected double getDefaultGravity()- 覆盖:
getDefaultGravity
在类中Entity
-
floatBoat
private void floatBoat() -
controlBoat
private void controlBoat() -
getSinglePassengerXOffset
protected float getSinglePassengerXOffset() -
hasEnoughSpaceFor
-
positionRider
- 覆盖:
positionRider
在类中Entity
-
getDismountLocationForPassenger
-
clampRotation
-
onPassengerTurned
- 覆盖:
onPassengerTurned
在类中Entity
-
addAdditionalSaveData
- 指定者:
addAdditionalSaveData
在类中Entity
-
readAdditionalSaveData
- 指定者:
readAdditionalSaveData
在类中Entity
-
interact
-
remove
-
checkFallDamage
protected void checkFallDamage(double p_361830_, boolean p_361999_, BlockState p_365352_, BlockPos p_367645_) - 覆盖:
checkFallDamage
在类中Entity
-
getPaddleState
public boolean getPaddleState(int p_363453_) -
setBubbleTime
private void setBubbleTime(int p_362638_) -
getBubbleTime
private int getBubbleTime() -
getBubbleAngle
public float getBubbleAngle(float p_361198_) -
canAddPassenger
- 覆盖:
canAddPassenger
在类中Entity
-
getMaxPassengers
protected int getMaxPassengers() -
getControllingPassenger
- 覆盖:
getControllingPassenger
在类中Entity
-
setInput
public void setInput(boolean p_370030_, boolean p_363750_, boolean p_364020_, boolean p_369506_) -
isUnderWater
public boolean isUnderWater()- 覆盖:
isUnderWater
在类中Entity
-
getDropItem
- 指定者:
getDropItem
在类中VehicleEntity
-
getPickResult
- 覆盖:
getPickResult
在类中Entity
-