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$Storage
intermediary net/minecraft/class_11568$class_11572
official cjj$d
named pos
intermediary comp_4427
official a
named inventory
intermediary comp_4428
official b
named blockEntity
intermediary comp_4429
official c
named state
intermediary comp_4430
official d
  • Field Details

    • pos

      private final BlockPos pos
      The field for the pos record component.
    • inventory

      private final Inventory inventory
      The field for the inventory record component.
    • blockEntity

      private final BlockEntity blockEntity
      The field for the blockEntity record component.
    • state

      private final BlockState state
      The field for the state record component.
  • Constructor Details

  • Method Details

    • forContainer

      @Nullable public static @Nullable MoveItemsTask.Storage forContainer(BlockEntity blockEntity, World world)
      Mappings:
      Namespace Name Mixin selector
      named forContainer Lnet/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_72455 Lnet/minecraft/class_11568$class_11572;method_72455(Lnet/minecraft/class_2586;Lnet/minecraft/class_1937;)Lnet/minecraft/class_11568$class_11572;
      official a Lcjj$d;a(Legg;Ldrq;)Lcjj$d;
    • forContainer

      @Nullable public static @Nullable MoveItemsTask.Storage forContainer(BlockPos pos, World world)
      Mappings:
      Namespace Name Mixin selector
      named forContainer Lnet/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_72454 Lnet/minecraft/class_11568$class_11572;method_72454(Lnet/minecraft/class_2338;Lnet/minecraft/class_1937;)Lnet/minecraft/class_11568$class_11572;
      official a Lcjj$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 getInventory Lnet/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_72453 Lnet/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 a Lcjj$d;a(Legg;Lejm;Ldrq;Lja;)Lcbj;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • pos

      public BlockPos pos()
      Returns the value of the pos record component.
      Returns:
      the value of the pos record component
    • inventory

      public Inventory inventory()
      Returns the value of the inventory record component.
      Returns:
      the value of the inventory record component
    • blockEntity

      public BlockEntity blockEntity()
      Returns the value of the blockEntity record component.
      Returns:
      the value of the blockEntity record component
    • state

      public BlockState state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component