Class Boat
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.entity.Entity
net.minecraft.world.entity.vehicle.VehicleEntity
net.minecraft.world.entity.vehicle.Boat
- All Implemented Interfaces:
- CommandSource,- EntityAccess,- Nameable,- ScoreHolder,- IAttachmentHolder,- IBoatExtension,- IEntityExtension,- INBTSerializable<CompoundTag>
- Direct Known Subclasses:
- ChestBoat
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.world.entity.EntityEntity.MoveFunction, Entity.MovementEmission, Entity.RemovalReasonNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolderAttachmentHolder.AsField
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intprivate floatprivate floatprivate booleanprivate floatprivate static final EntityDataAccessor<Integer>private static final EntityDataAccessor<Boolean>private static final EntityDataAccessor<Boolean>private static final EntityDataAccessor<Integer>private floatprivate booleanprivate booleanprivate booleanprivate booleanprivate floatprivate booleanprivate floatprivate doubleprivate intprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate Boat.Statusprivate floatstatic final intstatic final intstatic final doubleprivate static final floatprivate final float[]private Boat.Statusprivate static final intprivate doubleFields inherited from class net.minecraft.world.entity.vehicle.VehicleEntityDATA_ID_DAMAGE, DATA_ID_HURT, DATA_ID_HURTDIRFields inherited from class net.minecraft.world.entity.EntityBASE_TICKS_REQUIRED_TO_FREEZE, blocksBuilding, BOARDING_COOLDOWN, boardingCooldown, BREATHING_DISTANCE_BELOW_EYES, 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, isInsidePortal, mainSupportingBlockPos, MAX_ENTITY_TAG_COUNT, minorHorizontalCollision, moveDist, noCulling, noPhysics, PASSENGERS_TAG, portalEntrancePos, portalTime, random, stringUUID, stuckSpeedMultiplier, tickCount, TOTAL_AIR_SUPPLY, uuid, UUID_TAG, verticalCollision, verticalCollisionBelow, walkDist, walkDistO, wasEyeInWater, wasInPowderSnow, wasOnFire, wasTouchingWater, xo, xOld, xRotO, yo, yOld, yRotO, zo, zOldFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolderATTACHMENTS_NBT_KEYFields inherited from interface net.minecraft.commands.CommandSourceNULLFields inherited from interface net.minecraft.world.scores.ScoreHolderWILDCARD, WILDCARD_NAME
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddAdditionalSaveData(CompoundTag p_38359_) voidanimateHurt(float p_265761_) protected booleancanAddPassenger(Entity p_38390_) booleanbooleancanCollideWith(Entity p_38376_) static booleancanVehicleCollide(Entity p_38324_, Entity p_38325_) protected voidcheckFallDamage(double p_38307_, boolean p_38308_, BlockState p_38309_, BlockPos p_38310_) private booleanprotected voidclampRotation(Entity p_38322_) private voidprotected voidprivate voidfloatgetBubbleAngle(float p_38353_) private intgetDismountLocationForPassenger(LivingEntity p_38357_) protected floatgetEyeHeight(Pose p_38327_, EntityDimensions p_38328_) floatprotected intprotected Entity.MovementEmissionprotected SoundEventbooleangetPaddleState(int p_38314_) protected org.joml.Vector3fgetPassengerAttachmentPoint(Entity p_294665_, EntityDimensions p_295933_, float p_295585_) protected Vec3getRelativePortalPosition(Direction.Axis p_38335_, BlockUtil.FoundRectangle p_38336_) floatgetRowingTime(int p_38316_, float p_38317_) protected floatprivate Boat.Statusprotected ComponentfloatbooleanhasEnoughSpaceFor(Entity p_273171_) interact(Player p_38330_, InteractionHand p_38331_) booleanbooleanprivate Boat.StatusbooleandoublefloatdoublefloatdoublevoidlerpTo(double p_38299_, double p_38300_, double p_38301_, float p_38302_, float p_38303_, int p_38304_) voidonAboveBubbleCol(boolean p_38381_) voidonPassengerTurned(Entity p_38383_) protected voidpositionRider(Entity p_289552_, Entity.MoveFunction p_289571_) voidprotected voidreadAdditionalSaveData(CompoundTag p_38338_) private voidsetBubbleTime(int p_38367_) voidsetInput(boolean p_38343_, boolean p_38344_, boolean p_38345_, boolean p_38346_) voidsetPaddleState(boolean p_38340_, boolean p_38341_) voidsetVariant(Boat.Type p_38333_) voidtick()private voidprivate voidtickLerp()Methods inherited from class net.minecraft.world.entity.vehicle.VehicleEntitydestroy, destroy, getDamage, getHurtDir, getHurtTime, hurt, setDamage, setHurtDir, setHurtTime, shouldSourceDestroyMethods inherited from class net.minecraft.world.entity.EntityabsMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addPassenger, addTag, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canBeHitByProjectile, canChangeDimensions, canControlVehicle, canFreeze, canRide, canSpawnSprintParticle, canSprint, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, causeFallDamage, changeDimension, changeDimension, checkBelowWorld, checkDespawn, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, countPlayerPassengers, createCommandSourceStack, createHoverEvent, damageSources, dampensVibrations, discard, dismountsUnderwater, dismountTo, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, extinguishFire, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, fixupDimensions, gameEvent, gameEvent, getAddEntityPacket, getAirSupply, getAllSlots, getArmorSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockSpeedFactor, getBlockStateOn, getBlockStateOnLegacy, getBlockX, getBlockY, getBlockZ, getBoundingBox, getBoundingBoxForCulling, getCapability, getCapability, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensions, getDirection, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyeInFluidType, getEyePosition, getEyePosition, getEyeY, getFeetBlockState, getFireImmuneTicks, getFirstPassenger, getFluidHeight, getFluidJumpThreshold, getFluidTypeHeight, getForward, getHandHoldingItemAngle, getHandSlots, getId, getIndirectPassengers, getLeashOffset, getLeashOffset, getLightLevelDependentMagicValue, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMaxHeightFluidType, getMyRidingOffset, getName, getNameTagOffsetY, getOnPos, getOnPos, getOnPosLegacy, getPassengerRidingPosition, getPassengers, getPassengersAndSelf, getPercentFrozen, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalCooldown, getPortalWaitTime, getPose, getPosition, getPositionCodec, getPrimaryStepSoundBlockPos, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRemovalReason, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSlot, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getTicksFrozen, getTicksRequiredToFreeze, getType, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getViewYRot, getVisualRotationYInDegrees, getX, getX, getXRot, getY, getY, getYHeadRot, getYRot, getZ, getZ, handleDamageEvent, handleEntityEvent, handleInsidePortal, handleNetherPortal, hasControllingPassenger, hasCustomName, hasExactlyOnePlayerPassenger, hasGlowingTag, hashCode, hasIndirectPassenger, hasPassenger, hasPassenger, hasPermissions, hasPose, ignoreExplosion, interactAt, is, isAddedToWorld, isAlive, isAlliedTo, isAlliedTo, isAlwaysTicking, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCurrentlyGlowing, isCustomNameVisible, isDescending, isDiscrete, isEffectiveAi, isEyeInFluid, isFlapping, isFree, isFreezing, isFullyFrozen, isHorizontalCollisionMinor, isIgnoringBlockTriggers, isInFluidType, isInFluidType, isInLava, isInLiquid, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWall, isInWater, isInWaterOrBubble, isInWaterOrRain, 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, makeStuckInBlock, markHurt, maxUpStep, maybeBackOffFromEdge, mayInteract, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAddedToWorld, onBelowWorld, onClientRemoval, onFlap, onGround, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onRemovedFromWorld, onSyncedDataUpdated, onSyncedDataUpdated, pick, playCombinationStepSounds, playEntityOnFireExtinguishedSound, playerTouch, playMuffledStepSound, playSound, playSound, playStepSound, playSwimSound, position, positionRider, processFlappingMovement, processPortalCooldown, push, reapplyPosition, recreateFromPacket, refreshDimensions, remove, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rideTick, ridingOffset, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setData, setDeltaMovement, setDeltaMovement, setFluidTypeHeight, setGlowingTag, setId, setInvisible, setInvulnerable, setIsInPowderSnow, setItemSlot, setLevel, setLevelCallback, setMaxUpStep, setNoGravity, setOldPosAndRot, setOnGround, setOnGroundWithKnownMovement, setPortalCooldown, setPortalCooldown, setPos, setPos, setPose, setPosRaw, setRemainingFireTicks, setRemoved, setRot, setSecondsOnFire, setSharedFlag, setSharedFlagOnFire, setShiftKeyDown, setSilent, setSprinting, setSwimming, setTicksFrozen, setUUID, setViewScale, setXRot, setYBodyRot, setYHeadRot, setYRot, shouldBeSaved, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, shouldShowName, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, syncPacketPositionCodec, teleportRelative, teleportTo, teleportTo, teleportToWithTicket, thunderHit, toString, touchingUnloadedChunk, trackingPosition, tryCheckInsideBlocks, turn, unRide, unsetRemoved, updateDynamicGameEventListener, updateFluidHeightAndDoFluidPushing, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSoundMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolderareAttachmentsCompatible, deserializeAttachments, getData, hasAttachments, hasData, removeData, serializeAttachmentsMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSourcealwaysAcceptsMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHoldergetData, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBoatExtensioncanBoatInFluid, canBoatInFluidMethods inherited from interface net.neoforged.neoforge.common.extensions.IEntityExtensioncanBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canSwimInFluidType, deserializeNBT, getClassification, getFluidFallDistanceModifier, getFluidMotionScale, getParts, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, sendPairingData, serializeNBT, shouldRiderSitMethods inherited from interface net.minecraft.world.scores.ScoreHoldergetFeedbackDisplayName
- 
Field Details- 
DATA_ID_TYPE
- 
DATA_ID_PADDLE_LEFT
- 
DATA_ID_PADDLE_RIGHT
- 
DATA_ID_BUBBLE_TIME
- 
PADDLE_LEFTpublic static final int PADDLE_LEFT- See Also:
 
- 
PADDLE_RIGHTpublic static final int PADDLE_RIGHT- See Also:
 
- 
TIME_TO_EJECTprivate static final int TIME_TO_EJECT- See Also:
 
- 
PADDLE_SPEEDprivate static final float PADDLE_SPEED- See Also:
 
- 
PADDLE_SOUND_TIMEpublic static final double PADDLE_SOUND_TIME- See Also:
 
- 
BUBBLE_TIMEpublic static final int BUBBLE_TIME- See Also:
 
- 
paddlePositionsprivate final float[] paddlePositions
- 
invFrictionprivate float invFriction
- 
outOfControlTicksprivate float outOfControlTicks
- 
deltaRotationprivate float deltaRotation
- 
lerpStepsprivate int lerpSteps
- 
lerpXprivate double lerpX
- 
lerpYprivate double lerpY
- 
lerpZprivate double lerpZ
- 
lerpYRotprivate double lerpYRot
- 
lerpXRotprivate double lerpXRot
- 
inputLeftprivate boolean inputLeft
- 
inputRightprivate boolean inputRight
- 
inputUpprivate boolean inputUp
- 
inputDownprivate boolean inputDown
- 
waterLevelprivate double waterLevel
- 
landFrictionprivate float landFriction
- 
status
- 
oldStatus
- 
lastYdprivate double lastYd
- 
isAboveBubbleColumnprivate boolean isAboveBubbleColumn
- 
bubbleColumnDirectionIsDownprivate boolean bubbleColumnDirectionIsDown
- 
bubbleMultiplierprivate float bubbleMultiplier
- 
bubbleAngleprivate float bubbleAngle
- 
bubbleAngleOprivate float bubbleAngleO
 
- 
- 
Constructor Details- 
Boat
- 
Boat
 
- 
- 
Method Details- 
getEyeHeight- Overrides:
- getEyeHeightin class- Entity
 
- 
getMovementEmission- Overrides:
- getMovementEmissionin class- Entity
 
- 
defineSynchedDataprotected void defineSynchedData()- Overrides:
- defineSynchedDatain class- VehicleEntity
 
- 
canCollideWith- Overrides:
- canCollideWithin class- Entity
 
- 
canVehicleCollide
- 
canBeCollidedWithpublic boolean canBeCollidedWith()- Overrides:
- canBeCollidedWithin class- Entity
 
- 
isPushablepublic boolean isPushable()- Overrides:
- isPushablein class- Entity
 
- 
getRelativePortalPositionprotected Vec3 getRelativePortalPosition(Direction.Axis p_38335_, BlockUtil.FoundRectangle p_38336_) - Overrides:
- getRelativePortalPositionin class- Entity
 
- 
getPassengerAttachmentPointprotected org.joml.Vector3f getPassengerAttachmentPoint(Entity p_294665_, EntityDimensions p_295933_, float p_295585_) - Overrides:
- getPassengerAttachmentPointin class- Entity
 
- 
onAboveBubbleColpublic void onAboveBubbleCol(boolean p_38381_) - Overrides:
- onAboveBubbleColin class- Entity
 
- 
push
- 
getDropItem- Specified by:
- getDropItemin class- VehicleEntity
 
- 
animateHurtpublic void animateHurt(float p_265761_) - Overrides:
- animateHurtin class- Entity
 
- 
isPickablepublic boolean isPickable()- Overrides:
- isPickablein class- Entity
 
- 
lerpTopublic void lerpTo(double p_38299_, double p_38300_, double p_38301_, float p_38302_, float p_38303_, int p_38304_) 
- 
lerpTargetXpublic double lerpTargetX()- Overrides:
- lerpTargetXin class- Entity
 
- 
lerpTargetYpublic double lerpTargetY()- Overrides:
- lerpTargetYin class- Entity
 
- 
lerpTargetZpublic double lerpTargetZ()- Overrides:
- lerpTargetZin class- Entity
 
- 
lerpTargetXRotpublic float lerpTargetXRot()- Overrides:
- lerpTargetXRotin class- Entity
 
- 
lerpTargetYRotpublic float lerpTargetYRot()- Overrides:
- lerpTargetYRotin class- Entity
 
- 
getMotionDirection- Overrides:
- getMotionDirectionin class- Entity
 
- 
tickpublic void tick()
- 
tickBubbleColumnprivate void tickBubbleColumn()
- 
getPaddleSound
- 
tickLerpprivate void tickLerp()
- 
setPaddleStatepublic void setPaddleState(boolean p_38340_, boolean p_38341_) 
- 
getRowingTimepublic float getRowingTime(int p_38316_, float p_38317_) 
- 
getStatus
- 
getWaterLevelAbovepublic float getWaterLevelAbove()
- 
getGroundFrictionpublic float getGroundFriction()
- 
checkInWaterprivate boolean checkInWater()
- 
isUnderwater
- 
floatBoatprivate void floatBoat()
- 
controlBoatprivate void controlBoat()
- 
getSinglePassengerXOffsetprotected float getSinglePassengerXOffset()
- 
hasEnoughSpaceFor
- 
positionRider- Overrides:
- positionRiderin class- Entity
 
- 
getDismountLocationForPassenger- Overrides:
- getDismountLocationForPassengerin class- Entity
 
- 
clampRotation
- 
onPassengerTurned- Overrides:
- onPassengerTurnedin class- Entity
 
- 
addAdditionalSaveData- Specified by:
- addAdditionalSaveDatain class- Entity
 
- 
readAdditionalSaveData- Specified by:
- readAdditionalSaveDatain class- Entity
 
- 
interact
- 
checkFallDamageprotected void checkFallDamage(double p_38307_, boolean p_38308_, BlockState p_38309_, BlockPos p_38310_) - Overrides:
- checkFallDamagein class- Entity
 
- 
getPaddleStatepublic boolean getPaddleState(int p_38314_) 
- 
setBubbleTimeprivate void setBubbleTime(int p_38367_) 
- 
getBubbleTimeprivate int getBubbleTime()
- 
getBubbleAnglepublic float getBubbleAngle(float p_38353_) 
- 
setVariant
- 
getVariant
- 
canAddPassenger- Overrides:
- canAddPassengerin class- Entity
 
- 
getMaxPassengersprotected int getMaxPassengers()
- 
getControllingPassenger- Overrides:
- getControllingPassengerin class- Entity
 
- 
setInputpublic void setInput(boolean p_38343_, boolean p_38344_, boolean p_38345_, boolean p_38346_) 
- 
getTypeName- Overrides:
- getTypeNamein class- Entity
 
- 
isUnderWaterpublic boolean isUnderWater()- Overrides:
- isUnderWaterin class- Entity
 
- 
getPickResult- Overrides:
- getPickResultin class- Entity
 
 
-