类 Boat
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
net.minecraft.world.entity.Entity
net.minecraft.world.entity.vehicle.Boat
- 所有已实现的接口:
CommandSource
,EntityAccess
,Nameable
,ICapabilityProvider
,ICapabilityProviderImpl<Entity>
,ICapabilitySerializable<CompoundTag>
,IForgeBoat
,IForgeEntity
,INBTSerializable<CompoundTag>
- 直接已知子类:
ChestBoat
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReason
从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
字段概要
字段修饰符和类型字段说明static final int
private float
private float
private boolean
private float
private static final EntityDataAccessor<Integer>
private static final EntityDataAccessor<Float>
private static final EntityDataAccessor<Integer>
private static final EntityDataAccessor<Integer>
private static final EntityDataAccessor<Boolean>
private static final EntityDataAccessor<Boolean>
private static final EntityDataAccessor<Integer>
private float
private boolean
private boolean
private boolean
private boolean
private float
private boolean
private float
private double
private int
private double
private double
private double
private double
private double
private Boat.Status
private float
static final int
static final int
static final double
private static final float
private final float[]
private Boat.Status
private static final int
private double
从类继承的字段 net.minecraft.world.entity.Entity
BASE_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, zOld
从接口继承的字段 net.minecraft.commands.CommandSource
NULL
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
addAdditionalSaveData
(CompoundTag pCompound) protected void
addPassenger
(Entity passenger) void
animateHurt
(float pYaw) protected boolean
canAddPassenger
(Entity pPassenger) boolean
boolean
canCollideWith
(Entity pEntity) static boolean
canVehicleCollide
(Entity pVehicle, Entity pEntity) protected void
checkFallDamage
(double pY, boolean pOnGround, BlockState pState, BlockPos pPos) private boolean
protected void
clampRotation
(Entity pEntityToUpdate) private void
protected void
protected void
destroy
(DamageSource pDamageSource) private void
float
getBubbleAngle
(float pPartialTicks) private int
float
getDismountLocationForPassenger
(LivingEntity pLivingEntity) protected float
getEyeHeight
(Pose pPose, EntityDimensions pSize) float
int
int
protected int
protected Entity.MovementEmission
protected SoundEvent
boolean
getPaddleState
(int pSide) double
protected Vec3
getRelativePortalPosition
(Direction.Axis pAxis, BlockUtil.FoundRectangle pPortal) float
getRowingTime
(int pSide, float pLimbSwing) protected float
private Boat.Status
float
boolean
hasEnoughSpaceFor
(Entity pEntity) boolean
hurt
(DamageSource pSource, float pAmount) interact
(Player pPlayer, InteractionHand pHand) boolean
boolean
private Boat.Status
boolean
void
lerpTo
(double pX, double pY, double pZ, float pYaw, float pPitch, int pPosRotationIncrements, boolean pTeleport) void
onAboveBubbleCol
(boolean pDownwards) void
onPassengerTurned
(Entity pEntityToUpdate) protected void
positionRider
(Entity pPassenger, Entity.MoveFunction pCallback) void
protected void
readAdditionalSaveData
(CompoundTag pCompound) private void
setBubbleTime
(int pBubbleTime) void
setDamage
(float pDamageTaken) void
setHurtDir
(int pHurtDirection) void
setHurtTime
(int pHurtTime) void
setInput
(boolean pInputLeft, boolean pInputRight, boolean pInputUp, boolean pInputDown) void
setPaddleState
(boolean pLeft, boolean pRight) void
setVariant
(Boat.Type pVariant) void
tick()
private void
private void
tickLerp()
从类继承的方法 net.minecraft.world.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, addTag, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canBeHitByProjectile, canChangeDimensions, canEnterPose, canFreeze, canRide, canSpawnSprintParticle, canSprint, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, causeFallDamage, changeDimension, changeDimension, checkBelowWorld, checkDespawn, checkInsideBlocks, checkSlowFallDistance, checkSupportingBlock, chunkPosition, clearFire, closerThan, closerThan, collideBoundingBox, copyPosition, couldAcceptPassenger, 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, getBoundingBoxForPose, 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, 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, getTypeName, 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, 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, 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, rotate, save, saveAsPassenger, saveWithoutId, sendSystemMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, 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, waterSwimSound
从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
从接口继承的方法 net.minecraft.commands.CommandSource
alwaysAccepts
从接口继承的方法 net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBoat
canBoatInFluid, canBoatInFluid
从接口继承的方法 net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canSwimInFluidType, deserializeNBT, getClassification, getFluidFallDistanceModifier, getFluidMotionScale, getParts, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, serializeNBT, shouldRiderSit
-
字段详细资料
-
DATA_ID_HURT
-
DATA_ID_HURTDIR
-
DATA_ID_DAMAGE
-
DATA_ID_TYPE
-
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
-
-
构造器详细资料
-
Boat
-
Boat
-
-
方法详细资料
-
getEyeHeight
- 覆盖:
getEyeHeight
在类中Entity
-
getMovementEmission
- 覆盖:
getMovementEmission
在类中Entity
-
defineSynchedData
protected void defineSynchedData()- 指定者:
defineSynchedData
在类中Entity
-
canCollideWith
- 覆盖:
canCollideWith
在类中Entity
-
canVehicleCollide
-
canBeCollidedWith
public boolean canBeCollidedWith()- 覆盖:
canBeCollidedWith
在类中Entity
-
isPushable
public boolean isPushable()- 覆盖:
isPushable
在类中Entity
-
getRelativePortalPosition
- 覆盖:
getRelativePortalPosition
在类中Entity
-
getPassengersRidingOffset
public double getPassengersRidingOffset()- 覆盖:
getPassengersRidingOffset
在类中Entity
-
hurt
-
destroy
-
onAboveBubbleCol
public void onAboveBubbleCol(boolean pDownwards) - 覆盖:
onAboveBubbleCol
在类中Entity
-
push
-
getDropItem
-
animateHurt
public void animateHurt(float pYaw) - 覆盖:
animateHurt
在类中Entity
-
isPickable
public boolean isPickable()- 覆盖:
isPickable
在类中Entity
-
lerpTo
public void lerpTo(double pX, double pY, double pZ, float pYaw, float pPitch, int pPosRotationIncrements, boolean pTeleport) -
getMotionDirection
- 覆盖:
getMotionDirection
在类中Entity
-
tick
public void tick() -
tickBubbleColumn
private void tickBubbleColumn() -
getPaddleSound
-
tickLerp
private void tickLerp() -
setPaddleState
public void setPaddleState(boolean pLeft, boolean pRight) -
getRowingTime
public float getRowingTime(int pSide, float pLimbSwing) -
getStatus
-
getWaterLevelAbove
public float getWaterLevelAbove() -
getGroundFriction
public float getGroundFriction() -
checkInWater
private boolean checkInWater() -
isUnderwater
-
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
-
checkFallDamage
- 覆盖:
checkFallDamage
在类中Entity
-
getPaddleState
public boolean getPaddleState(int pSide) -
setDamage
public void setDamage(float pDamageTaken) -
getDamage
public float getDamage() -
setHurtTime
public void setHurtTime(int pHurtTime) -
getHurtTime
public int getHurtTime() -
setBubbleTime
private void setBubbleTime(int pBubbleTime) -
getBubbleTime
private int getBubbleTime() -
getBubbleAngle
public float getBubbleAngle(float pPartialTicks) -
setHurtDir
public void setHurtDir(int pHurtDirection) -
getHurtDir
public int getHurtDir() -
setVariant
-
getVariant
-
canAddPassenger
- 覆盖:
canAddPassenger
在类中Entity
-
getMaxPassengers
protected int getMaxPassengers() -
getControllingPassenger
- 覆盖:
getControllingPassenger
在类中Entity
-
setInput
public void setInput(boolean pInputLeft, boolean pInputRight, boolean pInputUp, boolean pInputDown) -
isUnderWater
public boolean isUnderWater()- 覆盖:
isUnderWater
在类中Entity
-
addPassenger
- 覆盖:
addPassenger
在类中Entity
-
getPickResult
- 覆盖:
getPickResult
在类中Entity
-