类 AbstractChestBoat
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
net.minecraft.world.entity.vehicle.AbstractChestBoat
- 所有已实现的接口:
Iterable<ItemStack>
,DataComponentGetter
,SyncedDataHolder
,Clearable
,Container
,HasCustomInventoryScreen
,Leashable
,ContainerEntity
,MenuConstructor
,EntityAccess
,UniquelyIdentifyable
,MenuProvider
,Nameable
,ScoreHolder
,IAttachmentHolder
,IAbstractBoatExtension
,IEntityExtension
,IMenuProviderExtension
public abstract class AbstractChestBoat
extends AbstractBoat
implements HasCustomInventoryScreen, ContainerEntity
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.entity.vehicle.AbstractBoat
AbstractBoat.Status
从类继承的嵌套类/接口 net.minecraft.world.entity.Entity
Entity.MoveFunction, Entity.MovementEmission, Entity.RemovalReason
从类继承的嵌套类/接口 net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
从接口继承的嵌套类/接口 net.minecraft.world.Container
Container.ContainerIterator
从接口继承的嵌套类/接口 net.minecraft.world.entity.Leashable
Leashable.LeashData, Leashable.Wrench
-
字段概要
字段修饰符和类型字段说明private static final int
private NonNullList
<ItemStack> private ResourceKey
<LootTable> private long
从类继承的字段 net.minecraft.world.entity.vehicle.AbstractBoat
BUBBLE_TIME, PADDLE_LEFT, PADDLE_RIGHT, PADDLE_SOUND_TIME
从类继承的字段 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.Container
DEFAULT_DISTANCE_BUFFER
从接口继承的字段 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
-
构造器概要
构造器构造器说明AbstractChestBoat
(EntityType<? extends AbstractChestBoat> p_376778_, Level p_376182_, Supplier<Item> p_376195_) -
方法概要
修饰符和类型方法说明protected void
addAdditionalSaveData
(ValueOutput p_421797_) void
void
createMenu
(int p_376862_, Inventory p_376651_, Player p_376108_) void
destroy
(ServerLevel p_376333_, DamageSource p_376433_) long
int
getItem
(int p_376545_) protected int
protected float
getSlot
(int p_376264_) interact
(Player p_376860_, InteractionHand p_376424_) void
openCustomInventoryScreen
(Player p_376437_) protected void
readAdditionalSaveData
(ValueInput p_421628_) void
remove
(Entity.RemovalReason p_376764_) removeItem
(int p_376479_, int p_376802_) removeItemNoUpdate
(int p_376287_) void
void
setContainerLootTable
(ResourceKey<LootTable> p_376327_) void
setContainerLootTableSeed
(long p_376440_) void
boolean
stillValid
(Player p_376726_) void
void
unpackLootTable
(Player p_376893_) 从类继承的方法 net.minecraft.world.entity.vehicle.AbstractBoat
animateHurt, canAddPassenger, canBeCollidedWith, canCollideWith, canVehicleCollide, checkFallDamage, clampRotation, defineSynchedData, getBubbleAngle, getControllingPassenger, getDefaultGravity, getDismountLocationForPassenger, getDropItem, getGroundFriction, getInterpolation, getLeashData, getLeashOffset, getMotionDirection, getMovementEmission, getPaddleSound, getPaddleState, getPassengerAttachmentPoint, getPickResult, getQuadLeashOffsets, getRelativePortalPosition, getRowingTime, getWaterLevelAbove, hasEnoughSpaceFor, isPickable, isPushable, isUnderWater, onAboveBubbleColumn, onPassengerTurned, positionRider, push, rideHeight, setInitialPos, setInput, setLeashData, setPaddleState, supportQuadLeash, tick
从类继承的方法 net.minecraft.world.entity.vehicle.VehicleEntity
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, 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.world.Container
canPlaceItem, canTakeItem, countItem, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, iterator, startOpen
从接口继承的方法 net.minecraft.world.entity.vehicle.ContainerEntity
addChestVehicleSaveData, chestVehicleDestroyed, clearChestVehicleContent, getBoundingBox, getChestVehicleItem, getChestVehicleSlot, interactWithContainerVehicle, isChestVehicleEmpty, isChestVehicleStillValid, isEmpty, isRemoved, level, position, readChestVehicleSaveData, removeChestVehicleItem, removeChestVehicleItemNoUpdate, setChestVehicleItem, unpackChestVehicleLootTable
从接口继承的方法 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.neoforged.neoforge.common.extensions.IMenuProviderExtension
shouldTriggerClientSideContainerClosingOnOpen, writeClientSideData
从接口继承的方法 java.lang.Iterable
forEach, spliterator
从接口继承的方法 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.MenuProvider
getDisplayName
从接口继承的方法 net.minecraft.world.scores.ScoreHolder
getFeedbackDisplayName
-
字段详细资料
-
CONTAINER_SIZE
private static final int CONTAINER_SIZE- 另请参阅:
-
itemStacks
-
lootTable
-
lootTableSeed
private long lootTableSeed
-
-
构造器详细资料
-
AbstractChestBoat
public AbstractChestBoat(EntityType<? extends AbstractChestBoat> p_376778_, Level p_376182_, Supplier<Item> p_376195_)
-
-
方法详细资料
-
getSinglePassengerXOffset
protected float getSinglePassengerXOffset() -
getMaxPassengers
protected int getMaxPassengers()- 覆盖:
getMaxPassengers
在类中AbstractBoat
-
addAdditionalSaveData
- 覆盖:
addAdditionalSaveData
在类中AbstractBoat
-
readAdditionalSaveData
- 覆盖:
readAdditionalSaveData
在类中AbstractBoat
-
destroy
- 覆盖:
destroy
在类中VehicleEntity
-
remove
- 覆盖:
remove
在类中AbstractBoat
-
interact
- 覆盖:
interact
在类中AbstractBoat
-
openCustomInventoryScreen
-
clearContent
public void clearContent()- 指定者:
clearContent
在接口中Clearable
-
getContainerSize
public int getContainerSize()- 指定者:
getContainerSize
在接口中Container
-
getItem
-
removeItem
- 指定者:
removeItem
在接口中Container
-
removeItemNoUpdate
- 指定者:
removeItemNoUpdate
在接口中Container
-
setItem
-
getSlot
-
setChanged
public void setChanged()- 指定者:
setChanged
在接口中Container
-
stillValid
- 指定者:
stillValid
在接口中Container
-
createMenu
@Nullable public AbstractContainerMenu createMenu(int p_376862_, Inventory p_376651_, Player p_376108_) - 指定者:
createMenu
在接口中MenuConstructor
-
unpackLootTable
-
getContainerLootTable
- 指定者:
getContainerLootTable
在接口中ContainerEntity
-
setContainerLootTable
- 指定者:
setContainerLootTable
在接口中ContainerEntity
-
getContainerLootTableSeed
public long getContainerLootTableSeed()- 指定者:
getContainerLootTableSeed
在接口中ContainerEntity
-
setContainerLootTableSeed
public void setContainerLootTableSeed(long p_376440_) - 指定者:
setContainerLootTableSeed
在接口中ContainerEntity
-
getItemStacks
- 指定者:
getItemStacks
在接口中ContainerEntity
-
clearItemStacks
public void clearItemStacks()- 指定者:
clearItemStacks
在接口中ContainerEntity
-
stopOpen
-