类 AbstractBoat
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.entity.Entity
net.minecraft.world.entity.vehicle.VehicleEntity
net.minecraft.world.entity.vehicle.AbstractBoat
- 所有已实现的接口:
DataComponentGetter
,SyncedDataHolder
,Leashable
,EntityAccess
,UniquelyIdentifyable
,Nameable
,ScoreHolder
,IAttachmentHolder
,IAbstractBoatExtension
,IEntityExtension
- 直接已知子类:
AbstractChestBoat
,Boat
,Raft
public abstract class AbstractBoat
extends VehicleEntity
implements Leashable, IAbstractBoatExtension
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReason
从类继承的嵌套类/接口 net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
从接口继承的嵌套类/接口 net.minecraft.world.entity.Leashable
Leashable.LeashData, Leashable.Wrench
-
字段概要
字段修饰符和类型字段说明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 final InterpolationHandler
private boolean
private float
private double
private Leashable.LeashData
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, invulnerableTime, isInPowderSnow, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, MAX_MOVEMENTS_HANDELED_PER_TICK, minorHorizontalCollision, moveDist, noPhysics, portalProcess, random, stringUUID, stuckSpeedMultiplier, TAG_AIR, TAG_DATA, TAG_FALL_DISTANCE, TAG_FIRE, TAG_GLOWING, TAG_ID, TAG_INVULNERABLE, TAG_MOTION, TAG_NO_GRAVITY, TAG_ON_GROUND, TAG_PASSENGERS, TAG_PORTAL_COOLDOWN, TAG_POS, TAG_ROTATION, TAG_SILENT, TAG_UUID, tickCount, TOTAL_AIR_SUPPLY, uuid, verticalCollision, verticalCollisionBelow, wasEyeInWater, wasInPowderSnow, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOld
从类继承的字段 net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
从接口继承的字段 net.minecraft.world.entity.Leashable
AXIS_SPECIFIC_ELASTICITY, ENTITY_ATTACHMENT_POINT, LEASH_ELASTIC_DIST, LEASH_TAG, LEASH_TOO_FAR_DIST, LEASHER_ATTACHMENT_POINT, MAXIMUM_ALLOWED_LEASHED_DIST, SHARED_QUAD_ATTACHMENT_POINTS, SPRING_DAMPENING, STIFFNESS, TORSIONAL_ELASTICITY
从接口继承的字段 net.minecraft.world.scores.ScoreHolder
WILDCARD, WILDCARD_NAME
-
构造器概要
构造器构造器说明AbstractBoat
(EntityType<? extends AbstractBoat> p_376844_, Level p_376177_, Supplier<Item> p_376258_) -
方法概要
修饰符和类型方法说明protected void
addAdditionalSaveData
(ValueOutput p_422306_) void
animateHurt
(float p_376617_) protected boolean
canAddPassenger
(Entity p_376443_) boolean
canBeCollidedWith
(Entity p_423669_) boolean
canCollideWith
(Entity p_376785_) static boolean
canVehicleCollide
(Entity p_376641_, Entity p_376219_) protected void
checkFallDamage
(double p_376661_, boolean p_376924_, BlockState p_376918_, BlockPos p_376727_) private boolean
protected void
clampRotation
(Entity p_376827_) private void
protected void
defineSynchedData
(SynchedEntityData.Builder p_376157_) private void
float
getBubbleAngle
(float p_376316_) private int
protected double
getDismountLocationForPassenger
(LivingEntity p_376670_) protected final Item
float
protected int
protected Entity.MovementEmission
protected SoundEvent
boolean
getPaddleState
(int p_376528_) protected Vec3
getPassengerAttachmentPoint
(Entity p_376607_, EntityDimensions p_376417_, float p_376713_) final ItemStack
Vec3[]
getRelativePortalPosition
(Direction.Axis p_376896_, BlockUtil.FoundRectangle p_376254_) float
getRowingTime
(int p_376364_, float p_376934_) protected float
private AbstractBoat.Status
float
boolean
hasEnoughSpaceFor
(Entity p_376373_) interact
(Player p_376241_, InteractionHand p_376920_) boolean
boolean
private AbstractBoat.Status
boolean
void
onAboveBubbleColumn
(boolean p_376266_, BlockPos p_393506_) void
onPassengerTurned
(Entity p_376888_) protected void
positionRider
(Entity p_376397_, Entity.MoveFunction p_376131_) void
protected void
readAdditionalSaveData
(ValueInput p_421554_) void
remove
(Entity.RemovalReason p_376469_) protected abstract double
rideHeight
(EntityDimensions p_376342_) private void
setBubbleTime
(int p_376387_) void
setInitialPos
(double p_376201_, double p_376405_, double p_376794_) void
setInput
(boolean p_376242_, boolean p_376253_, boolean p_376339_, boolean p_376564_) void
setLeashData
(Leashable.LeashData p_376525_) void
setPaddleState
(boolean p_376390_, boolean p_376323_) boolean
void
tick()
private void
从类继承的方法 net.minecraft.world.entity.vehicle.VehicleEntity
destroy, destroy, getDamage, getDimensionChangingDelay, getHurtDir, getHurtTime, hurtClient, hurtServer, ignoreExplosion, setDamage, setHurtDir, setHurtTime, shouldSourceDestroy
从类继承的方法 net.minecraft.world.entity.Entity
absSnapRotationTo, absSnapTo, absSnapTo, addDeltaMovement, addPassenger, addTag, adjustSpawnLocation, applyComponentsFromItemStack, applyEffectsFromBlocks, applyEffectsFromBlocks, applyGravity, applyImplicitComponent, applyImplicitComponentIfPresent, applyImplicitComponents, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canBeHitByProjectile, canControlVehicle, canFreeze, canRide, canSimulateMovement, canSpawnSprintParticle, canSprint, canTeleport, canTrample, canUsePortal, captureDrops, captureDrops, castComponentValue, causeFallDamage, checkBelowWorld, checkDespawn, checkFallDistanceAccumulation, checkSupportingBlock, chunkPosition, clearFire, clearFreeze, clearMovementThisTick, closerThan, closerThan, collideBoundingBox, collidedWithFluid, collidedWithShapeMovingFrom, considersEntityAsAlly, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStackForNameResolution, createHoverEvent, damageSources, dampensVibrations, deflection, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doCheckFallDamage, doWaterSplashEffect, dropAllLeashConnections, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, fireImmune, fixupDimensions, forceSetRotation, fudgePositionAfterSizeChange, gameEvent, gameEvent, get, getAddEntityPacket, getAirSupply, getAttachments, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockSpeedFactor, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getCapability, getCapability, getCollisionHorizontalEscapeVector, 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, 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, getQuadLeashHolderOffsets, getRandom, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRequiresPrecisePosition, 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, handleOnAboveBubbleColumn, handleOnInsideBubbleColumn, handlePortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPose, hurt, hurtOrSimulate, igniteForSeconds, igniteForTicks, interactAt, is, isAddedToLevel, isAffectedByBlocks, isAlive, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isClientAuthoritative, isColliding, isCrouching, isCurrentlyGlowing, isCustomNameVisible, isDescending, isDiscrete, isEffectiveAi, isEyeInFluid, isFlapping, isFlyingVehicle, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInClouds, isInFluidType, isInFluidType, isInLava, isInLiquid, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableToBase, isInWall, isInWater, isInWaterOrRain, isLocalClientAuthoritative, isLocalInstanceAuthoritative, isNoGravity, isOnFire, isOnPortalCooldown, isOnRails, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isRemoved, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSupportedBy, isSuppressingBounce, isSwimming, isVehicle, isVisuallyCrawling, isVisuallySwimming, kill, killedEntity, lavaHurt, lavaIgnite, lerpHeadTo, lerpMotion, lerpPositionAndRotationStep, level, limitPistonMovement, load, lookAt, makeBoundingBox, makeBoundingBox, makeStuckInBlock, markHurt, maxUpStep, maybeBackOffFromEdge, mayInteract, mirror, move, moveOrInterpolateTo, moveRelative, moveTowardsClosestSpace, nextStep, notifyLeasheeRemoved, notifyLeashHolder, oldPosition, onAddedToLevel, onBelowWorld, onClientRemoval, onExplosionHit, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onRemoval, onRemovedFromLevel, onSyncedDataUpdated, onSyncedDataUpdated, pick, placePortalTicket, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, problemPath, processFlappingMovement, processPortalCooldown, propagateFallToPassengers, push, push, reapplyPosition, recreateFromPacket, refreshDimensions, registryAccess, removeAfterChangingDimensions, removeLatestMovementRecording, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rideTick, rotate, save, saveAsPassenger, saveWithoutId, sendBubbleColumnParticles, setAirSupply, setAsInsidePortal, setBoundingBox, setComponent, setCustomName, setCustomNameVisible, setData, 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, setRequiresPrecisePosition, setRot, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSprinting, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYBodyRot, setYHeadRot, setYRot, shearOffAllLeashConnections, shouldBeSaved, shouldBlockExplode, shouldPlayLavaHurtSound, shouldRender, shouldRenderAtSqrDistance, shouldShowName, showVehicleHealth, skipAttackInteraction, snapTo, snapTo, snapTo, snapTo, snapTo, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, supportQuadLeashAsHolder, syncPacketPositionCodec, teleport, teleportRelative, teleportSetPosition, teleportSpectators, teleportTo, teleportTo, thunderHit, toString, touchingUnloadedChunk, trackingPosition, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSound
从类继承的方法 net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, removeData, serializeAttachments
从接口继承的方法 net.minecraft.core.component.DataComponentGetter
get, getOrDefault, getOrDefault, getTyped, has, has
从接口继承的方法 net.neoforged.neoforge.common.extensions.IAbstractBoatExtension
canBoatInFluid, canBoatInFluid
从接口继承的方法 net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData
从接口继承的方法 net.neoforged.neoforge.common.extensions.IEntityExtension
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canSwimInFluidType, copyAttachmentsFrom, getClassification, getFluidFallDistanceModifier, getFluidMotionScale, getParts, getSoundFromFluidType, hasCustomOutlineRendering, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, sendPairingData, shouldRiderSit
从接口继承的方法 net.minecraft.world.entity.Leashable
canBeLeashed, canHaveALeashAttachedTo, checkElasticInteractions, closeRangeLeashBehaviour, dropLeash, getLeashHolder, getLeashOffset, isLeashed, leashDistanceTo, leashElasticDistance, leashSnapDistance, leashTooFarBehaviour, mayBeLeashed, onElasticLeashPull, onLeashRemoved, readLeashData, removeLeash, setDelayedLeashHolderId, setLeashedTo, whenLeashedTo, 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 -
outOfControlTicks
private float outOfControlTicks -
deltaRotation
private float deltaRotation -
interpolation
-
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_376844_, Level p_376177_, Supplier<Item> p_376258_)
-
-
方法详细资料
-
setInitialPos
public void setInitialPos(double p_376201_, double p_376405_, double p_376794_) -
getMovementEmission
- 覆盖:
getMovementEmission
在类中Entity
-
defineSynchedData
- 覆盖:
defineSynchedData
在类中VehicleEntity
-
canCollideWith
- 覆盖:
canCollideWith
在类中Entity
-
canVehicleCollide
-
canBeCollidedWith
- 覆盖:
canBeCollidedWith
在类中Entity
-
isPushable
public boolean isPushable()- 覆盖:
isPushable
在类中Entity
-
getRelativePortalPosition
- 覆盖:
getRelativePortalPosition
在类中Entity
-
rideHeight
-
getPassengerAttachmentPoint
protected Vec3 getPassengerAttachmentPoint(Entity p_376607_, EntityDimensions p_376417_, float p_376713_) - 覆盖:
getPassengerAttachmentPoint
在类中Entity
-
onAboveBubbleColumn
- 覆盖:
onAboveBubbleColumn
在类中Entity
-
push
-
animateHurt
public void animateHurt(float p_376617_) - 覆盖:
animateHurt
在类中Entity
-
isPickable
public boolean isPickable()- 覆盖:
isPickable
在类中Entity
-
getInterpolation
- 覆盖:
getInterpolation
在类中Entity
-
getMotionDirection
- 覆盖:
getMotionDirection
在类中Entity
-
tick
public void tick() -
tickBubbleColumn
private void tickBubbleColumn() -
getPaddleSound
-
setPaddleState
public void setPaddleState(boolean p_376390_, boolean p_376323_) -
getRowingTime
public float getRowingTime(int p_376364_, float p_376934_) -
getLeashData
- 指定者:
getLeashData
在接口中Leashable
-
setLeashData
- 指定者:
setLeashData
在接口中Leashable
-
getLeashOffset
- 指定者:
getLeashOffset
在接口中Leashable
-
supportQuadLeash
public boolean supportQuadLeash()- 指定者:
supportQuadLeash
在接口中Leashable
-
getQuadLeashOffsets
- 指定者:
getQuadLeashOffsets
在接口中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_376661_, boolean p_376924_, BlockState p_376918_, BlockPos p_376727_) - 覆盖:
checkFallDamage
在类中Entity
-
getPaddleState
public boolean getPaddleState(int p_376528_) -
setBubbleTime
private void setBubbleTime(int p_376387_) -
getBubbleTime
private int getBubbleTime() -
getBubbleAngle
public float getBubbleAngle(float p_376316_) -
canAddPassenger
- 覆盖:
canAddPassenger
在类中Entity
-
getMaxPassengers
protected int getMaxPassengers() -
getControllingPassenger
- 覆盖:
getControllingPassenger
在类中Entity
-
setInput
public void setInput(boolean p_376242_, boolean p_376253_, boolean p_376339_, boolean p_376564_) -
isUnderWater
public boolean isUnderWater()- 覆盖:
isUnderWater
在类中Entity
-
getDropItem
- 指定者:
getDropItem
在类中VehicleEntity
-
getPickResult
- 覆盖:
getPickResult
在类中Entity
-