Class ItemScatterer

java.lang.Object
net.minecraft.util.ItemScatterer

public class ItemScatterer extends Object
Contains utility methods for spawning item entities scattered around a certain position. All methods consume the item stack, so there is no need for decrementing the stack size yourself.
See Also:
Mappings:
Namespace Name
official bhx
intermediary net/minecraft/class_1264
named net/minecraft/util/ItemScatterer
  • Constructor Details

    • ItemScatterer

      public ItemScatterer()
  • Method Details

    • spawn

      public static void spawn(World world, BlockPos pos, Inventory inventory)
      Spawns item entities from inventory around pos.
      Mappings:
      Namespace Name Mixin selector
      official a Lbhx;a(Lcqz;Lht;Lbhu;)V
      intermediary method_5451 Lnet/minecraft/class_1264;method_5451(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1263;)V
      named spawn Lnet/minecraft/util/ItemScatterer;spawn(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/inventory/Inventory;)V
    • spawn

      public static void spawn(World world, Entity entity, Inventory inventory)
      Spawns item entities from inventory around entity's position.
      Mappings:
      Namespace Name Mixin selector
      official a Lbhx;a(Lcqz;Lbjt;Lbhu;)V
      intermediary method_5452 Lnet/minecraft/class_1264;method_5452(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;Lnet/minecraft/class_1263;)V
      named spawn Lnet/minecraft/util/ItemScatterer;spawn(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;Lnet/minecraft/inventory/Inventory;)V
    • spawn

      private static void spawn(World world, double x, double y, double z, Inventory inventory)
      Spawns item entities from inventory around the given position.
      Mappings:
      Namespace Name Mixin selector
      official a Lbhx;a(Lcqz;DDDLbhu;)V
      intermediary method_5450 Lnet/minecraft/class_1264;method_5450(Lnet/minecraft/class_1937;DDDLnet/minecraft/class_1263;)V
      named spawn Lnet/minecraft/util/ItemScatterer;spawn(Lnet/minecraft/world/World;DDDLnet/minecraft/inventory/Inventory;)V
    • spawn

      public static void spawn(World world, BlockPos pos, DefaultedList<ItemStack> stacks)
      Spawns item entities from stacks around pos.
      Mappings:
      Namespace Name Mixin selector
      official a Lbhx;a(Lcqz;Lht;Lil;)V
      intermediary method_17349 Lnet/minecraft/class_1264;method_17349(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2371;)V
      named spawn Lnet/minecraft/util/ItemScatterer;spawn(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/collection/DefaultedList;)V
    • spawn

      public static void spawn(World world, double x, double y, double z, ItemStack stack)
      Spawns an item entity of stack around the given position.
      Mappings:
      Namespace Name Mixin selector
      official a Lbhx;a(Lcqz;DDDLckj;)V
      intermediary method_5449 Lnet/minecraft/class_1264;method_5449(Lnet/minecraft/class_1937;DDDLnet/minecraft/class_1799;)V
      named spawn Lnet/minecraft/util/ItemScatterer;spawn(Lnet/minecraft/world/World;DDDLnet/minecraft/item/ItemStack;)V
    • method_54291

      public static void method_54291(BlockState blockState, BlockState blockState2, World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhx;a(Ldgb;Ldgb;Lcqz;Lht;)V
      intermediary method_54291 Lnet/minecraft/class_1264;method_54291(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
      named method_54291 Lnet/minecraft/util/ItemScatterer;method_54291(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V