Class ChestBoat
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<Entity>
net.minecraft.world.entity.Entity
net.minecraft.world.entity.vehicle.Boat
net.minecraft.world.entity.vehicle.ChestBoat
- All Implemented Interfaces:
- CommandSource,- Clearable,- Container,- HasCustomInventoryScreen,- ContainerEntity,- MenuConstructor,- EntityAccess,- MenuProvider,- Nameable,- ICapabilityProvider,- ICapabilityProviderImpl<Entity>,- ICapabilitySerializable<CompoundTag>,- IForgeBoat,- IForgeEntity,- INBTSerializable<CompoundTag>
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.entity.vehicle.BoatBoat.Status, Boat.TypeNested classes/interfaces inherited from class net.minecraft.world.entity.EntityEntity.MoveFunction, Entity.MovementEmission, Entity.RemovalReasonNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate LazyOptional<?>private NonNullList<ItemStack>private ResourceLocationprivate longFields inherited from class net.minecraft.world.entity.vehicle.BoatBUBBLE_TIME, PADDLE_LEFT, PADDLE_RIGHT, PADDLE_SOUND_TIMEFields 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 interface net.minecraft.commands.CommandSourceNULLFields inherited from interface net.minecraft.world.ContainerDEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddAdditionalSaveData(CompoundTag p_219908_) voidvoidcreateMenu(int p_219910_, Inventory p_219911_, Player p_219912_) voiddestroy(DamageSource p_219892_) <T> LazyOptional<T>getCapability(Capability<T> capability, Direction facing) Retrieves the Optional handler for the capability requested on the specific side.intgetItem(int p_219880_) longprotected intprotected floatgetSlot(int p_219918_) interact(Player p_219898_, InteractionHand p_219899_) voidvoidopenCustomInventoryScreen(Player p_219906_) protected voidreadAdditionalSaveData(CompoundTag p_219901_) voidremove(Entity.RemovalReason p_219894_) removeItem(int p_219882_, int p_219883_) removeItemNoUpdate(int p_219904_) voidvoidvoidvoidsetLootTable(ResourceLocation p_219890_) voidsetLootTableSeed(long p_219888_) booleanstillValid(Player p_219896_) voidvoidunpackLootTable(Player p_219914_) Methods inherited from class net.minecraft.world.entity.vehicle.BoataddPassenger, animateHurt, canAddPassenger, canBeCollidedWith, canCollideWith, canVehicleCollide, checkFallDamage, clampRotation, defineSynchedData, getBubbleAngle, getControllingPassenger, getDamage, getDismountLocationForPassenger, getEyeHeight, getGroundFriction, getHurtDir, getHurtTime, getMotionDirection, getMovementEmission, getPaddleSound, getPaddleState, getPassengerAttachmentPoint, getPickResult, getRelativePortalPosition, getRowingTime, getTypeName, getVariant, getWaterLevelAbove, hasEnoughSpaceFor, hurt, isPickable, isPushable, isUnderWater, lerpTargetX, lerpTargetXRot, lerpTargetY, lerpTargetYRot, lerpTargetZ, lerpTo, onAboveBubbleCol, onPassengerTurned, positionRider, push, setDamage, setHurtDir, setHurtTime, setInput, setPaddleState, setVariant, tickMethods inherited from class net.minecraft.world.entity.EntityabsMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addDeltaMovement, 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, 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, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControlledVehicle, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensions, getDimensionsForge, 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, 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, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetFallDistance, restoreFrom, revive, rideTick, ridingOffset, 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, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming, waterSwimSoundMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCapsMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSourcealwaysAcceptsMethods inherited from interface net.minecraft.world.ContainercanPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpenMethods inherited from interface net.minecraft.world.entity.vehicle.ContainerEntityaddChestVehicleSaveData, chestVehicleDestroyed, clearChestVehicleContent, getChestVehicleItem, getChestVehicleSlot, interactWithContainerVehicle, isChestVehicleEmpty, isChestVehicleStillValid, isEmpty, isRemoved, level, position, readChestVehicleSaveData, removeChestVehicleItem, removeChestVehicleItemNoUpdate, setChestVehicleItem, unpackChestVehicleLootTableMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBoatcanBoatInFluid, canBoatInFluid, shouldUpdateFluidWhileRidingMethods inherited from interface net.minecraftforge.common.extensions.IForgeEntitycanBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canSwimInFluidType, deserializeNBT, getClassification, getEyeHeightForge, getFluidFallDistanceModifier, getFluidMotionScale, getParts, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, serializeNBT, shouldRiderSit, shouldUpdateFluidWhileBoatingMethods inherited from interface net.minecraft.world.MenuProvidergetDisplayName
- 
Field Details- 
CONTAINER_SIZEprivate static final int CONTAINER_SIZE- See Also:
 
- 
itemStacks
- 
lootTable
- 
lootTableSeedprivate long lootTableSeed
- 
itemHandler
 
- 
- 
Constructor Details- 
ChestBoat
- 
ChestBoat
 
- 
- 
Method Details- 
getSinglePassengerXOffsetprotected float getSinglePassengerXOffset()- Overrides:
- getSinglePassengerXOffsetin class- Boat
 
- 
getMaxPassengersprotected int getMaxPassengers()- Overrides:
- getMaxPassengersin class- Boat
 
- 
addAdditionalSaveData- Overrides:
- addAdditionalSaveDatain class- Boat
 
- 
readAdditionalSaveData- Overrides:
- readAdditionalSaveDatain class- Boat
 
- 
destroy
- 
remove
- 
interact
- 
openCustomInventoryScreen- Specified by:
- openCustomInventoryScreenin interface- HasCustomInventoryScreen
 
- 
getDropItem- Overrides:
- getDropItemin class- Boat
 
- 
clearContentpublic void clearContent()- Specified by:
- clearContentin interface- Clearable
 
- 
getContainerSizepublic int getContainerSize()- Specified by:
- getContainerSizein interface- Container
 
- 
getItem
- 
removeItem- Specified by:
- removeItemin interface- Container
 
- 
removeItemNoUpdate- Specified by:
- removeItemNoUpdatein interface- Container
 
- 
setItem
- 
getSlot
- 
setChangedpublic void setChanged()- Specified by:
- setChangedin interface- Container
 
- 
stillValid- Specified by:
- stillValidin interface- Container
 
- 
createMenu@Nullable public AbstractContainerMenu createMenu(int p_219910_, Inventory p_219911_, Player p_219912_) - Specified by:
- createMenuin interface- MenuConstructor
 
- 
unpackLootTable
- 
getLootTable- Specified by:
- getLootTablein interface- ContainerEntity
 
- 
setLootTable- Specified by:
- setLootTablein interface- ContainerEntity
 
- 
getLootTableSeedpublic long getLootTableSeed()- Specified by:
- getLootTableSeedin interface- ContainerEntity
 
- 
setLootTableSeedpublic void setLootTableSeed(long p_219888_) - Specified by:
- setLootTableSeedin interface- ContainerEntity
 
- 
getItemStacks- Specified by:
- getItemStacksin interface- ContainerEntity
 
- 
clearItemStackspublic void clearItemStacks()- Specified by:
- clearItemStacksin interface- ContainerEntity
 
- 
getCapabilityDescription copied from interface:ICapabilityProviderRetrieves the Optional handler for the capability requested on the specific side. The return value CAN be the same for multiple faces. Modders are encouraged to cache this value, using the listener capabilities of the Optional to be notified if the requested capability get lost.- Specified by:
- getCapabilityin interface- ICapabilityProvider
- Overrides:
- getCapabilityin class- CapabilityProvider<Entity>
- Parameters:
- capability- The capability to check
- facing- The Side to check from, CAN BE NULL. Null is defined to represent 'internal' or 'self'
- Returns:
- The requested an optional holding the requested capability.
 
- 
invalidateCapspublic void invalidateCaps()- Specified by:
- invalidateCapsin interface- ICapabilityProviderImpl<Entity>
- Overrides:
- invalidateCapsin class- CapabilityProvider<Entity>
 
- 
reviveCapspublic void reviveCaps()- Specified by:
- reviveCapsin interface- ICapabilityProviderImpl<Entity>
- Overrides:
- reviveCapsin class- CapabilityProvider<Entity>
 
- 
stopOpen
 
-