Package net.minecraft.entity.vehicle
Class AbstractChestBoatEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.vehicle.VehicleEntity
net.minecraft.entity.vehicle.AbstractBoatEntity
net.minecraft.entity.vehicle.AbstractChestBoatEntity
- All Implemented Interfaces:
Iterable<ItemStack>,ComponentsAccess,DataTracked,Leashable,RideableInventory,VehicleInventory,Inventory,ScoreHolder,NamedScreenHandlerFactory,ScreenHandlerFactory,Clearable,HeldItemContext,Nameable,DebugTrackable,EntityLike,UniquelyIdentifiable
- Direct Known Subclasses:
ChestBoatEntity,ChestRaftEntity
public abstract class AbstractChestBoatEntity
extends AbstractBoatEntity
implements RideableInventory, VehicleInventory
- Mappings:
Namespace Name named net/minecraft/entity/vehicle/AbstractChestBoatEntityintermediary net/minecraft/class_10256official dbz
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.vehicle.AbstractBoatEntity
AbstractBoatEntity.LocationNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReasonNested classes/interfaces inherited from interface net.minecraft.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.TrackerNested classes/interfaces inherited from interface net.minecraft.util.HeldItemContext
HeldItemContext.OffsetNested classes/interfaces inherited from interface net.minecraft.inventory.Inventory
Inventory.IteratorNested classes/interfaces inherited from interface net.minecraft.entity.Leashable
Leashable.Elasticity, Leashable.LeashData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DefaultedList<ItemStack> private static final intprivate @Nullable RegistryKey<LootTable> private longFields inherited from class net.minecraft.entity.vehicle.AbstractBoatEntity
EMIT_SOUND_EVENT_PADDLE_ROTATION, field_54427, field_54445, field_54447Fields inherited from class net.minecraft.entity.vehicle.VehicleEntity
DAMAGE_WOBBLE_SIDE, DAMAGE_WOBBLE_STRENGTH, DAMAGE_WOBBLE_TICKSFields inherited from class net.minecraft.entity.Entity
age, AIR_KEY, collidedSoftly, CUSTOM_DATA_KEY, CUSTOM_NAME_KEY, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_DISTANCE_KEY, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, FIRE_KEY, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, GLOWING_KEY, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, INVULNERABLE_KEY, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_QUEUED_COLLISION_CHECKS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, MOTION_KEY, movementMultiplier, NO_GRAVITY_KEY, noClip, ON_FIRE_FLAG_INDEX, ON_GROUND_KEY, PASSENGERS_KEY, PORTAL_COOLDOWN_KEY, portalManager, POS_KEY, POSE, random, ridingCooldown, ROTATION_KEY, SILENT_KEY, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnowFields inherited from interface net.minecraft.inventory.Inventory
DEFAULT_MAX_INTERACTION_RANGEFields inherited from interface net.minecraft.entity.Leashable
DEFAULT_ELASTIC_DISTANCE, DEFAULT_SNAPPING_DISTANCE, ELASTICITY_MULTIPLIER, field_59997, field_59998, field_59999, field_60003, HELD_ENTITY_ATTACHMENT_POINT, LEASH_HOLDER_ATTACHMENT_POINT, LEASH_NBT_KEY, QUAD_LEASH_ATTACHMENT_POINTSFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionAbstractChestBoatEntity(EntityType<? extends AbstractChestBoatEntity> type, World world, Supplier<Item> itemSupplier) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.voidclear()createMenu(int syncId, PlayerInventory playerInventory, PlayerEntity player) voidgenerateLoot(@Nullable PlayerEntity player) longprotected intprotected floatgetStack(int slot) Returns the stack currently stored atslot.getStackReference(int mappedIndex) Obtains a stack reference to be modified.interact(PlayerEntity player, Hand hand) Called when a player interacts with this entity.voidkillAndDropSelf(ServerWorld world, DamageSource damageSource) voidMarks the inventory as modified.voidonClose(ContainerUser user) Called when the inventory is closed.voidopenInventory(PlayerEntity player) protected voidreadCustomData(ReadView view) voidremove(Entity.RemovalReason reason) Removes the entity.removeStack(int slot) Removes the stack currently stored atslot.removeStack(int slot, int amount) Removes a specific number of items fromslot.voidvoidsetLootTable(@Nullable RegistryKey<LootTable> lootTable) voidsetLootTableSeed(long lootTableSeed) voidSets the stack stored atslottostack.intsize()Returns the size of the inventory.protected voidwriteCustomData(WriteView view) Methods inherited from class net.minecraft.entity.vehicle.AbstractBoatEntity
animateDamage, asItem, canAddPassenger, canCollide, canHit, canUseQuadLeashAttachmentPoint, clampPassengerYaw, collidesWith, fall, getControllingPassenger, getGravity, getInterpolator, getLeashData, getLeashOffset, getMoveEffect, getMovementDirection, getNearbySlipperiness, getPaddleSound, getPassengerAttachmentPos, getPassengerAttachmentY, getPickBlockStack, getQuadLeashOffsets, getWaterHeightBelow, initDataTracker, initPosition, isCollidable, isPaddleMoving, isPushable, isSmallerThanBoat, isSubmergedInWater, lerpBubbleWobble, lerpPaddlePhase, onBubbleColumnSurfaceCollision, onPassengerLookAround, positionInPortal, pushAwayFrom, setInputs, setLeashData, setPaddlesMoving, tick, updatePassengerForDismount, updatePassengerPositionMethods inherited from class net.minecraft.entity.vehicle.VehicleEntity
clientDamage, damage, getDamageWobbleSide, getDamageWobbleStrength, getDamageWobbleTicks, getDefaultPortalCooldown, isImmuneToExplosion, killAndDropItem, setDamageWobbleSide, setDamageWobbleStrength, setDamageWobbleTicks, shouldAlwaysKillMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calcDistanceFromBottomCollision, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canActVoluntarily, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, canUsePortals, castComponentValue, changeLookDirection, checkDespawn, clearQueuedCollisionChecks, collides, collidesWithFluid, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, defrost, detach, detachAllHeldLeashes, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropStack, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, findCollisions, get, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyYaw, getBodyZ, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityPos, getEntityWorld, getErrorReporterContext, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeadYaw, getHeight, getHeldQuadLeashOffsets, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getLootTableKey, getMaxAir, getMinFreezeDamageTicks, getMovement, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getSoundCategory, getSplashSound, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getWeaponStack, getWidth, getWorldSpawnPos, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFall, handleFallDamage, handleFallDamageForPassengers, handleStatus, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasQuadLeashAttachmentPoints, hasVehicle, igniteByLava, interactAt, isAlive, isAlwaysInvulnerableTo, isAtCloudHeight, isAttackable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFlyingVehicle, isFrozen, isGlowing, isGlowingLocal, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWall, isInSneakingPose, isInSwimmingPose, isInteractable, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartlyTouchingWater, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, kill, lerpPosAndRotation, lerpYaw, limitFallDistance, lookAt, move, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onBubbleColumnCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onHeldLeashUpdate, onKilledOther, onLanding, onPlayerCollision, onRemove, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, pushOutOfBlocks, raycast, readData, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, registerTracking, reinitDimensions, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveData, saveSelfData, scheduleVelocityUpdate, serverDamage, setAir, setAlwaysSyncAbsolute, setAngles, setApplicableComponent, setBodyYaw, setBoundingBox, setChangeListener, setComponent, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInPowderSnow, setInvisible, setInvulnerable, setLastPositionAndAngles, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireForTicks, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldAlwaysSyncAbsolute, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, snipAllHeldLeashes, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportSpectatingPlayers, teleportTo, tickBlockCollision, tickBlockCollision, tickHeldLeash, tickInVoid, tickPortalCooldown, tickPortalTeleportation, tickRiding, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedAngles, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTypedMethods inherited from interface net.minecraft.util.HeldItemContext
getEntityMethods inherited from interface net.minecraft.inventory.Inventory
canTransferTo, containsAny, containsAny, count, getMaxCount, getMaxCountPerStack, getViewingUsers, isValid, iterator, onOpenMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.minecraft.entity.Leashable
applyElasticity, attachLeash, beforeLeashTick, canBeLeashed, canBeLeashedTo, detachLeash, detachLeashWithoutDrop, getDistanceToCenter, getElasticLeashDistance, getLeashHolder, getLeashOffset, getLeashSnappingDistance, isLeashed, mightBeLeashed, onLeashRemoved, onLongLeashTick, onShortLeashTick, readLeashData, setUnresolvedLeashHolderId, snapLongLeash, writeLeashDataMethods inherited from interface net.minecraft.util.Nameable
getStringifiedNameMethods inherited from interface net.minecraft.screen.NamedScreenHandlerFactory
getDisplayNameMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayNameMethods inherited from interface net.minecraft.entity.vehicle.VehicleInventory
canPlayerAccess, clearInventory, generateInventoryLoot, getBoundingBox, getEntityPos, getEntityWorld, getInventoryStack, getInventoryStackReference, isEmpty, isInventoryEmpty, isRemoved, onBroken, open, readInventoryFromData, removeInventoryStack, removeInventoryStack, setInventoryStack, writeInventoryToData
-
Field Details
-
INVENTORY_SIZE
private static final int INVENTORY_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named INVENTORY_SIZELnet/minecraft/entity/vehicle/AbstractChestBoatEntity;INVENTORY_SIZE:Iintermediary field_54462Lnet/minecraft/class_10256;field_54462:Iofficial rLdbz;r:I
-
inventory
- Mappings:
Namespace Name Mixin selector named inventoryLnet/minecraft/entity/vehicle/AbstractChestBoatEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;intermediary field_54463Lnet/minecraft/class_10256;field_54463:Lnet/minecraft/class_2371;official sLdbz;s:Ljt;
-
lootTable
- Mappings:
Namespace Name Mixin selector named lootTableLnet/minecraft/entity/vehicle/AbstractChestBoatEntity;lootTable:Lnet/minecraft/registry/RegistryKey;intermediary field_54464Lnet/minecraft/class_10256;field_54464:Lnet/minecraft/class_5321;official tLdbz;t:Lami;
-
lootTableSeed
private long lootTableSeed- Mappings:
Namespace Name Mixin selector named lootTableSeedLnet/minecraft/entity/vehicle/AbstractChestBoatEntity;lootTableSeed:Jintermediary field_54465Lnet/minecraft/class_10256;field_54465:Jofficial uLdbz;u:J
-
-
Constructor Details
-
AbstractChestBoatEntity
public AbstractChestBoatEntity(EntityType<? extends AbstractChestBoatEntity> type, World world, Supplier<Item> itemSupplier) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/vehicle/AbstractBoatEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;Ljava/util/function/Supplier;)Vintermediary <init>Lnet/minecraft/class_10255;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;Ljava/util/function/Supplier;)Vofficial <init>Ldby;<init>(Lcee;Ldrq;Ljava/util/function/Supplier;)V
-
-
Method Details
-
getPassengerHorizontalOffset
protected float getPassengerHorizontalOffset()- Overrides:
getPassengerHorizontalOffsetin classAbstractBoatEntity- Mappings:
Namespace Name Mixin selector named getPassengerHorizontalOffsetLnet/minecraft/entity/vehicle/AbstractBoatEntity;getPassengerHorizontalOffset()Fintermediary method_64499Lnet/minecraft/class_10255;method_64499()Fofficial mLdby;m()F
-
getMaxPassengers
protected int getMaxPassengers()- Overrides:
getMaxPassengersin classAbstractBoatEntity- Mappings:
Namespace Name Mixin selector named getMaxPassengersLnet/minecraft/entity/vehicle/AbstractBoatEntity;getMaxPassengers()Iintermediary method_64500Lnet/minecraft/class_10255;method_64500()Iofficial nLdby;n()I
-
writeCustomData
- Overrides:
writeCustomDatain classAbstractBoatEntity- Mappings:
Namespace Name Mixin selector named writeCustomDataLnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)Vofficial aLcdv;a(Lfir;)V
-
readCustomData
- Overrides:
readCustomDatain classAbstractBoatEntity- Mappings:
Namespace Name Mixin selector named readCustomDataLnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)Vofficial aLcdv;a(Lfip;)V
-
killAndDropSelf
- Overrides:
killAndDropSelfin classVehicleEntity- Mappings:
Namespace Name Mixin selector named killAndDropSelfLnet/minecraft/entity/vehicle/VehicleEntity;killAndDropSelf(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_7516Lnet/minecraft/class_8836;method_7516(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;)Vofficial aLdcs;a(Lawx;Lcci;)V
-
remove
Removes the entity.- Overrides:
removein classAbstractBoatEntity- See Also:
- Mappings:
Namespace Name Mixin selector named removeLnet/minecraft/entity/Entity;remove(Lnet/minecraft/entity/Entity$RemovalReason;)Vintermediary method_5650Lnet/minecraft/class_1297;method_5650(Lnet/minecraft/class_1297$class_5529;)Vofficial aLcdv;a(Lcdv$e;)V
-
interact
Called when a player interacts with this entity.- Overrides:
interactin classAbstractBoatEntity- Parameters:
player- the playerhand- the hand the player used to interact with this entity- Mappings:
Namespace Name Mixin selector named interactLnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;intermediary method_5688Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;official aLcdv;a(Lczl;Lcbp;)Lcbq;
-
openInventory
- Specified by:
openInventoryin interfaceRideableInventory- Mappings:
Namespace Name Mixin selector named openInventoryLnet/minecraft/entity/RideableInventory;openInventory(Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_6722Lnet/minecraft/class_7248;method_6722(Lnet/minecraft/class_1657;)Vofficial bLcel;b(Lczl;)V
-
clear
public void clear() -
size
public int size()Returns the size of the inventory.The inventory should support the slot ID from
0tosize() - 1. This should remain constant throughout the inventory's lifetime. -
getStack
Returns the stack currently stored atslot.If the slot is empty, or is outside the bounds of this inventory, this returns
ItemStack.EMPTY.- Specified by:
getStackin interfaceInventory- Returns:
- the stack currently stored at
slot - Mappings:
Namespace Name Mixin selector named getStackLnet/minecraft/inventory/Inventory;getStack(I)Lnet/minecraft/item/ItemStack;intermediary method_5438Lnet/minecraft/class_1263;method_5438(I)Lnet/minecraft/class_1799;official aLcbj;a(I)Ldhp;
-
removeStack
Removes a specific number of items fromslot.- Specified by:
removeStackin interfaceInventory- Returns:
- the removed items as a stack
- Mappings:
Namespace Name Mixin selector named removeStackLnet/minecraft/inventory/Inventory;removeStack(II)Lnet/minecraft/item/ItemStack;intermediary method_5434Lnet/minecraft/class_1263;method_5434(II)Lnet/minecraft/class_1799;official aLcbj;a(II)Ldhp;
-
removeStack
Removes the stack currently stored atslot.- Specified by:
removeStackin interfaceInventory- Returns:
- the stack previously stored at the indicated slot
- Mappings:
Namespace Name Mixin selector named removeStackLnet/minecraft/inventory/Inventory;removeStack(I)Lnet/minecraft/item/ItemStack;intermediary method_5441Lnet/minecraft/class_1263;method_5441(I)Lnet/minecraft/class_1799;official bLcbj;b(I)Ldhp;
-
setStack
Sets the stack stored atslottostack. -
getStackReference
Obtains a stack reference to be modified. Used by commands like/lootor/item.- Overrides:
getStackReferencein classEntity- Parameters:
mappedIndex- the mapped index as given by the item slot argument- See Also:
- Mappings:
Namespace Name Mixin selector named getStackReferenceLnet/minecraft/entity/Entity;getStackReference(I)Lnet/minecraft/inventory/StackReference;intermediary method_32318Lnet/minecraft/class_1297;method_32318(I)Lnet/minecraft/class_5630;official a_Lcdv;a_(I)Lcfn;
-
markDirty
public void markDirty()Marks the inventory as modified. Implementations should call this method every time the inventory is changed in any way.- Specified by:
markDirtyin interfaceInventory- See Also:
- API Note:
- Implementations should mark the inventory for synchronization or
saving in this method. Since this is called frequently, it is not recommended to
synchronize or save the inventory directly in this method. If this inventory is
implemented in a block entity, then it should always call
super.markDirty();to ensure the block entity gets saved. - Mappings:
Namespace Name Mixin selector named markDirtyLnet/minecraft/inventory/Inventory;markDirty()Vintermediary method_5431Lnet/minecraft/class_1263;method_5431()Vofficial eLcbj;e()V
-
canPlayerUse
Returns whetherplayercan use this inventory.This is called by
ScreenHandler.canUse(net.minecraft.screen.ScreenHandlerContext, net.minecraft.entity.player.PlayerEntity, net.minecraft.block.Block).- Specified by:
canPlayerUsein interfaceInventory- Returns:
- whether
playercan use this inventory - See Also:
- API Note:
- Implementations should check the distance between the inventory
holder and
player. For convenience, this interface offers two methods used by block entities to implement this check. - Mappings:
Namespace Name Mixin selector named canPlayerUseLnet/minecraft/inventory/Inventory;canPlayerUse(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_5443Lnet/minecraft/class_1263;method_5443(Lnet/minecraft/class_1657;)Zofficial aLcbj;a(Lczl;)Z
-
createMenu
@Nullable public @Nullable ScreenHandler createMenu(int syncId, PlayerInventory playerInventory, PlayerEntity player) - Specified by:
createMenuin interfaceScreenHandlerFactory- Mappings:
Namespace Name Mixin selector named createMenuLnet/minecraft/screen/ScreenHandlerFactory;createMenu(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/screen/ScreenHandler;intermediary createMenuLnet/minecraft/class_1270;createMenu(ILnet/minecraft/class_1661;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1703;official createMenuLdeo;createMenu(ILczk;Lczl;)Lddg;
-
generateLoot
- Mappings:
Namespace Name Mixin selector named generateLootLnet/minecraft/entity/vehicle/AbstractChestBoatEntity;generateLoot(Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_64501Lnet/minecraft/class_10256;method_64501(Lnet/minecraft/class_1657;)Vofficial fLdbz;f(Lczl;)V
-
getLootTable
- Specified by:
getLootTablein interfaceVehicleInventory- Mappings:
Namespace Name Mixin selector named getLootTableLnet/minecraft/entity/vehicle/VehicleInventory;getLootTable()Lnet/minecraft/registry/RegistryKey;intermediary method_42276Lnet/minecraft/class_7265;method_42276()Lnet/minecraft/class_5321;official qLdcf;q()Lami;
-
setLootTable
- Specified by:
setLootTablein interfaceVehicleInventory- Mappings:
Namespace Name Mixin selector named setLootTableLnet/minecraft/entity/vehicle/VehicleInventory;setLootTable(Lnet/minecraft/registry/RegistryKey;)Vintermediary method_42275Lnet/minecraft/class_7265;method_42275(Lnet/minecraft/class_5321;)Vofficial aLdcf;a(Lami;)V
-
getLootTableSeed
public long getLootTableSeed()- Specified by:
getLootTableSeedin interfaceVehicleInventory- Mappings:
Namespace Name Mixin selector named getLootTableSeedLnet/minecraft/entity/vehicle/VehicleInventory;getLootTableSeed()Jintermediary method_42277Lnet/minecraft/class_7265;method_42277()Jofficial rLdcf;r()J
-
setLootTableSeed
public void setLootTableSeed(long lootTableSeed) - Specified by:
setLootTableSeedin interfaceVehicleInventory- Mappings:
Namespace Name Mixin selector named setLootTableSeedLnet/minecraft/entity/vehicle/VehicleInventory;setLootTableSeed(J)Vintermediary method_42274Lnet/minecraft/class_7265;method_42274(J)Vofficial aLdcf;a(J)V
-
getInventory
- Specified by:
getInventoryin interfaceVehicleInventory- Mappings:
Namespace Name Mixin selector named getInventoryLnet/minecraft/entity/vehicle/VehicleInventory;getInventory()Lnet/minecraft/util/collection/DefaultedList;intermediary method_42278Lnet/minecraft/class_7265;method_42278()Lnet/minecraft/class_2371;official sLdcf;s()Ljt;
-
resetInventory
public void resetInventory()- Specified by:
resetInventoryin interfaceVehicleInventory- Mappings:
Namespace Name Mixin selector named resetInventoryLnet/minecraft/entity/vehicle/VehicleInventory;resetInventory()Vintermediary method_42273Lnet/minecraft/class_7265;method_42273()Vofficial uLdcf;u()V
-
onClose
Called when the inventory is closed. Specifically, this is called insideScreenHandler.onClosed(net.minecraft.entity.player.PlayerEntity). This does nothing by default.The method is called in both the client and the server. However, because clientside screen handler is created with a
SimpleInventory, other implementations can (and the vanilla code does) assume that the method is called in the server.
-