Class ChestBoatEntity
- All Implemented Interfaces:
DataTracked,Leashable,RideableInventory,VariantHolder<BoatEntity.Type>,VehicleInventory,Inventory,ScoreHolder,NamedScreenHandlerFactory,ScreenHandlerFactory,CommandOutput,Clearable,Nameable,EntityLike
- Mappings:
Namespace Name named net/minecraft/entity/vehicle/ChestBoatEntityintermediary net/minecraft/class_7264official cow
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.vehicle.BoatEntity
BoatEntity.Location, BoatEntity.TypeNested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReasonNested classes/interfaces inherited from interface net.minecraft.entity.Leashable
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.BoatEntity
EMIT_SOUND_EVENT_PADDLE_ROTATION, field_30697, field_30698, field_30700Fields 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, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inPowderSnow, intersectionChecked, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, portalManager, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFireFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMYFields inherited from interface net.minecraft.inventory.Inventory
DEFAULT_MAX_INTERACTION_RANGEFields inherited from interface net.minecraft.entity.Leashable
field_52314, field_52315, LEASH_NBT_KEYFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionChestBoatEntity(EntityType<? extends BoatEntity> type, World world) ChestBoatEntity(World world, double x, double y, double z) -
Method Summary
Modifier and TypeMethodDescriptionasItem()booleancanPlayerUse(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(DamageSource source) voidMarks the inventory as modified.voidonClose(PlayerEntity player) Called when the inventory is closed.voidopenInventory(PlayerEntity player) protected voidReads custom data fromnbt.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 voidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.vehicle.BoatEntity
animateDamage, applyLeashElasticity, canAddPassenger, canCollide, canHit, clampPassengerYaw, collidesWith, fall, getControllingPassenger, getDefaultName, getGravity, getLeashData, getLeashOffset, getLerpTargetPitch, getLerpTargetX, getLerpTargetY, getLerpTargetYaw, getLerpTargetZ, getMoveEffect, getMovementDirection, getNearbySlipperiness, getPaddleSoundEvent, getPassengerAttachmentPos, getPickBlockStack, getVariant, getWaterHeightBelow, initDataTracker, interpolateBubbleWobble, interpolatePaddlePhase, isCollidable, isPaddleMoving, isPushable, isSmallerThanBoat, isSubmergedInWater, onBubbleColumnSurfaceCollision, onPassengerLookAround, positionInPortal, pushAwayFrom, setInputs, setLeashData, setPaddleMovings, setVariant, tick, updatePassengerForDismount, updatePassengerPosition, updateTrackedPositionAndAnglesMethods inherited from class net.minecraft.entity.vehicle.VehicleEntity
damage, getDamageWobbleSide, getDamageWobbleStrength, getDamageWobbleTicks, killAndDropItem, setDamageWobbleSide, setDamageWobbleStrength, setDamageWobbleTicks, shouldAlwaysKillMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, applyGravity, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canModifyAt, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, createSpawnPacket, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, extinguishWithSound, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBodyYaw, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeadYaw, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMinFreezeDamageTicks, getMovement, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWeaponStack, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, interactAt, isAlive, isAttackable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lerpPosAndRotation, lerpYaw, limitFallDistance, lookAt, move, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onKilledOther, onLanding, onPlayerCollision, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setAngles, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireForTicks, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportTo, tickInVoid, tickPortalCooldown, tickPortalTeleportation, tickRiding, toNbtList, toNbtList, toString, tryCheckBlockCollision, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateVelocity, updateWaterState, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilencedMethods inherited from interface net.minecraft.inventory.Inventory
canTransferTo, containsAny, containsAny, count, getMaxCount, getMaxCountPerStack, isValid, onOpenMethods inherited from interface net.minecraft.entity.Leashable
attachLeash, canBeLeashed, canLeashAttachTo, detachLeash, detachLeash, getLeashHolder, isLeashed, mightBeLeashed, onShortLeashTick, readLeashDataFromNbt, setUnresolvedLeashHolderId, shouldTickLeash, writeLeashDataToNbtMethods 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, getInventoryStack, getInventoryStackReference, getPos, getWorld, isEmpty, isInventoryEmpty, isRemoved, onBroken, open, readInventoryFromNbt, removeInventoryStack, removeInventoryStack, setInventoryStack, writeInventoryToNbt
-
Field Details
-
INVENTORY_SIZE
private static final int INVENTORY_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named INVENTORY_SIZELnet/minecraft/entity/vehicle/ChestBoatEntity;INVENTORY_SIZE:Iintermediary field_38207Lnet/minecraft/class_7264;field_38207:Iofficial iLcow;i:I
-
inventory
- Mappings:
Namespace Name Mixin selector named inventoryLnet/minecraft/entity/vehicle/ChestBoatEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;intermediary field_38204Lnet/minecraft/class_7264;field_38204:Lnet/minecraft/class_2371;official jLcow;j:Ljv;
-
lootTable
- Mappings:
Namespace Name Mixin selector named lootTableLnet/minecraft/entity/vehicle/ChestBoatEntity;lootTable:Lnet/minecraft/registry/RegistryKey;intermediary field_38205Lnet/minecraft/class_7264;field_38205:Lnet/minecraft/class_5321;official kLcow;k:Lakq;
-
lootTableSeed
private long lootTableSeed- Mappings:
Namespace Name Mixin selector named lootTableSeedLnet/minecraft/entity/vehicle/ChestBoatEntity;lootTableSeed:Jintermediary field_38206Lnet/minecraft/class_7264;field_38206:Jofficial lLcow;l:J
-
-
Constructor Details
-
ChestBoatEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vofficial <init>Lbsr;<init>(Lbsx;Ldcw;)V
-
ChestBoatEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/vehicle/BoatEntity;<init>(Lnet/minecraft/world/World;DDD)Vintermediary <init>Lnet/minecraft/class_1690;<init>(Lnet/minecraft/class_1937;DDD)Vofficial <init>Lcov;<init>(Ldcw;DDD)V
-
-
Method Details
-
getPassengerHorizontalOffset
protected float getPassengerHorizontalOffset()- Overrides:
getPassengerHorizontalOffsetin classBoatEntity- Mappings:
Namespace Name Mixin selector named getPassengerHorizontalOffsetLnet/minecraft/entity/vehicle/BoatEntity;getPassengerHorizontalOffset()Fintermediary method_42280Lnet/minecraft/class_1690;method_42280()Fofficial wLcov;w()F
-
getMaxPassengers
protected int getMaxPassengers()- Overrides:
getMaxPassengersin classBoatEntity- Mappings:
Namespace Name Mixin selector named getMaxPassengersLnet/minecraft/entity/vehicle/BoatEntity;getMaxPassengers()Iintermediary method_42281Lnet/minecraft/class_1690;method_42281()Iofficial FLcov;F()I
-
writeCustomDataToNbt
Writes custom data tonbt. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
- Overrides:
writeCustomDataToNbtin classBoatEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vofficial bLbsr;b(Lub;)V
-
readCustomDataFromNbt
Reads custom data fromnbt. Subclasses have to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.
nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readCustomDataFromNbtin classBoatEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vofficial aLbsr;a(Lub;)V
-
killAndDropSelf
- Overrides:
killAndDropSelfin classVehicleEntity- Mappings:
Namespace Name Mixin selector named killAndDropSelfLnet/minecraft/entity/vehicle/VehicleEntity;killAndDropSelf(Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_7516Lnet/minecraft/class_8836;method_7516(Lnet/minecraft/class_1282;)Vofficial aLcpg;a(Lbrk;)V
-
remove
Removes the entity.- Overrides:
removein classBoatEntity- 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 aLbsr;a(Lbsr$c;)V
-
interact
Called when a player interacts with this entity.- Overrides:
interactin classBoatEntity- 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 aLbsr;a(Lcmx;Lbqq;)Lbqr;
-
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 bLbtf;b(Lcmx;)V
-
asItem
- Overrides:
asItemin classBoatEntity- Mappings:
Namespace Name Mixin selector named asItemLnet/minecraft/entity/vehicle/VehicleEntity;asItem()Lnet/minecraft/item/Item;intermediary method_7557Lnet/minecraft/class_8836;method_7557()Lnet/minecraft/class_1792;official ak_Lcpg;ak_()Lcul;
-
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 aLbqk;a(I)Lcuq;
-
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 aLbqk;a(II)Lcuq;
-
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 bLbqk;b(I)Lcuq;
-
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_Lbsr;a_(I)Lbug;
-
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 eLbqk;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 aLbqk;a(Lcmx;)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 createMenuLcrb;createMenu(ILcmw;Lcmx;)Lcpu;
-
generateLoot
- Mappings:
Namespace Name Mixin selector named generateLootLnet/minecraft/entity/vehicle/ChestBoatEntity;generateLoot(Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_42282Lnet/minecraft/class_7264;method_42282(Lnet/minecraft/class_1657;)Vofficial eLcow;e(Lcmx;)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 BLcox;B()Lakq;
-
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 aLcox;a(Lakq;)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 CLcox;C()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 aLcox;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 DLcox;D()Ljv;
-
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 ELcox;E()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.- Specified by:
onClosein interfaceInventory- Mappings:
Namespace Name Mixin selector named onCloseLnet/minecraft/inventory/Inventory;onClose(Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_5432Lnet/minecraft/class_1263;method_5432(Lnet/minecraft/class_1657;)Vofficial cLbqk;c(Lcmx;)V
-