Record Class MoveItemsTask.Storage
java.lang.Object
java.lang.Record
net.minecraft.entity.ai.brain.task.MoveItemsTask.Storage
- Record Components:
pos-inventory-blockEntity-state-
- Enclosing class:
MoveItemsTask
public static record MoveItemsTask.Storage(BlockPos pos, Inventory inventory, BlockEntity blockEntity, BlockState state)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/MoveItemsTask$Storageintermediary net/minecraft/class_11568$class_11572official cjj$dnamed posintermediary comp_4427official anamed inventoryintermediary comp_4428official bnamed blockEntityintermediary comp_4429official cnamed stateintermediary comp_4430official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockEntityThe field for theblockEntityrecord component.private final InventoryThe field for theinventoryrecord component.private final BlockPosThe field for theposrecord component.private final BlockStateThe field for thestaterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStorage(BlockPos blockPos, Inventory inventory, BlockEntity blockEntity, BlockState blockState) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockEntityrecord component.final booleanIndicates whether some other object is "equal to" this one.static @Nullable MoveItemsTask.StorageforContainer(BlockEntity blockEntity, World world) static @Nullable MoveItemsTask.StorageforContainer(BlockPos pos, World world) getInventory(BlockEntity blockEntity, BlockState state, World world, BlockPos pos) final inthashCode()Returns a hash code value for this object.Returns the value of theinventoryrecord component.pos()Returns the value of theposrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pos
The field for theposrecord component. -
inventory
The field for theinventoryrecord component. -
blockEntity
The field for theblockEntityrecord component. -
state
The field for thestaterecord component.
-
-
Constructor Details
-
Storage
public Storage(BlockPos blockPos, Inventory inventory, BlockEntity blockEntity, BlockState blockState)
-
-
Method Details
-
forContainer
@Nullable public static @Nullable MoveItemsTask.Storage forContainer(BlockEntity blockEntity, World world) - Mappings:
Namespace Name Mixin selector named forContainerLnet/minecraft/entity/ai/brain/task/MoveItemsTask$Storage;forContainer(Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/world/World;)Lnet/minecraft/entity/ai/brain/task/MoveItemsTask$Storage;intermediary method_72455Lnet/minecraft/class_11568$class_11572;method_72455(Lnet/minecraft/class_2586;Lnet/minecraft/class_1937;)Lnet/minecraft/class_11568$class_11572;official aLcjj$d;a(Legg;Ldrq;)Lcjj$d;
-
forContainer
- Mappings:
Namespace Name Mixin selector named forContainerLnet/minecraft/entity/ai/brain/task/MoveItemsTask$Storage;forContainer(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/World;)Lnet/minecraft/entity/ai/brain/task/MoveItemsTask$Storage;intermediary method_72454Lnet/minecraft/class_11568$class_11572;method_72454(Lnet/minecraft/class_2338;Lnet/minecraft/class_1937;)Lnet/minecraft/class_11568$class_11572;official aLcjj$d;a(Lja;Ldrq;)Lcjj$d;
-
getInventory
@Nullable private static @Nullable Inventory getInventory(BlockEntity blockEntity, BlockState state, World world, BlockPos pos) - Mappings:
Namespace Name Mixin selector named getInventoryLnet/minecraft/entity/ai/brain/task/MoveItemsTask$Storage;getInventory(Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/inventory/Inventory;intermediary method_72453Lnet/minecraft/class_11568$class_11572;method_72453(Lnet/minecraft/class_2586;Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1263;official aLcjj$d;a(Legg;Lejm;Ldrq;Lja;)Lcbj;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
inventory
Returns the value of theinventoryrecord component.- Returns:
- the value of the
inventoryrecord component
-
blockEntity
Returns the value of theblockEntityrecord component.- Returns:
- the value of the
blockEntityrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-