yarn/mappings/net/minecraft/util/ItemScatterer.mapping

50 lines
2.2 KiB
Plaintext

CLASS net/minecraft/class_1264 net/minecraft/util/ItemScatterer
COMMENT Contains utility methods for spawning item entities scattered around a certain position.
COMMENT All methods consume the item stack, so there is no need for decrementing the
COMMENT stack size yourself.
COMMENT
COMMENT @see net.minecraft.block.AbstractBlock#onStateReplaced
METHOD method_17348 (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;)V
ARG 2 stack
METHOD method_17349 spawn (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2371;)V
COMMENT Spawns item entities from {@code stacks} around {@code pos}.
ARG 0 world
ARG 1 pos
ARG 2 stacks
METHOD method_54291 onStateReplaced (Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
COMMENT Implementation {@link net.minecraft.block.AbstractBlock#onStateReplaced}.
COMMENT This assumes that the block has a corresponding block entity.
COMMENT
COMMENT <p>If the block changes, this {@linkplain #spawn(World, BlockPos, Inventory) spawns}
COMMENT item entities around the block and updates redstone comparators.
COMMENT
COMMENT @see net.minecraft.block.AbstractBlock#onStateReplaced
ARG 0 state
ARG 1 newState
ARG 2 world
ARG 3 pos
METHOD method_5449 spawn (Lnet/minecraft/class_1937;DDDLnet/minecraft/class_1799;)V
COMMENT Spawns an item entity of {@code stack} around the given position.
ARG 0 world
ARG 1 x
ARG 3 y
ARG 5 z
ARG 7 stack
METHOD method_5450 spawn (Lnet/minecraft/class_1937;DDDLnet/minecraft/class_1263;)V
COMMENT Spawns item entities from {@code inventory} around the given position.
ARG 0 world
ARG 1 x
ARG 3 y
ARG 5 z
ARG 7 inventory
METHOD method_5451 spawn (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1263;)V
COMMENT Spawns item entities from {@code inventory} around {@code pos}.
ARG 0 world
ARG 1 pos
ARG 2 inventory
METHOD method_5452 spawn (Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;Lnet/minecraft/class_1263;)V
COMMENT Spawns item entities from {@code inventory} around {@code entity}'s position.
ARG 0 world
ARG 1 entity
ARG 2 inventory