public class BlockHelper
extends java.lang.Object
| Constructor and Description |
|---|
BlockHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addReducedDestroyEffects(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.client.particle.ParticleManager manager) |
static net.minecraft.block.BlockState |
copyProperties(net.minecraft.block.BlockState fromState,
net.minecraft.block.BlockState toState) |
static <T extends java.lang.Comparable<T>> |
copyProperty(net.minecraft.state.Property<T> property,
net.minecraft.block.BlockState fromState,
net.minecraft.block.BlockState toState) |
static void |
destroyBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
float effectChance) |
static void |
destroyBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
float effectChance,
java.util.function.Consumer<net.minecraft.item.ItemStack> droppedItemCallback) |
static void |
destroyBlockAs(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.item.ItemStack usedTool,
float effectChance,
java.util.function.Consumer<net.minecraft.item.ItemStack> droppedItemCallback) |
static boolean |
extinguishFire(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity p_175719_1_,
net.minecraft.util.math.BlockPos p_175719_2_,
net.minecraft.util.Direction p_175719_3_) |
static int |
findAndRemoveInInventory(net.minecraft.block.BlockState block,
net.minecraft.entity.player.PlayerEntity player,
int amount) |
static double |
getBounceMultiplier(net.minecraft.block.Block block) |
static net.minecraft.item.ItemStack |
getRequiredItem(net.minecraft.block.BlockState state) |
static boolean |
hasBlockSolidSide(net.minecraft.block.BlockState p_220056_0_,
net.minecraft.world.IBlockReader p_220056_1_,
net.minecraft.util.math.BlockPos p_220056_2_,
net.minecraft.util.Direction p_220056_3_) |
static boolean |
isSolidWall(net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos fromPos,
net.minecraft.util.Direction toDirection) |
static boolean |
noCollisionInSpace(net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos pos) |
static void |
placeSchematicBlock(net.minecraft.world.World world,
net.minecraft.block.BlockState state,
net.minecraft.util.math.BlockPos target,
net.minecraft.item.ItemStack stack,
net.minecraft.nbt.CompoundNBT data) |
static net.minecraft.block.BlockState |
setZeroAge(net.minecraft.block.BlockState blockState) |
public static void addReducedDestroyEffects(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.client.particle.ParticleManager manager)
public static net.minecraft.block.BlockState setZeroAge(net.minecraft.block.BlockState blockState)
public static int findAndRemoveInInventory(net.minecraft.block.BlockState block,
net.minecraft.entity.player.PlayerEntity player,
int amount)
public static net.minecraft.item.ItemStack getRequiredItem(net.minecraft.block.BlockState state)
public static void destroyBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
float effectChance)
public static void destroyBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
float effectChance,
java.util.function.Consumer<net.minecraft.item.ItemStack> droppedItemCallback)
public static void destroyBlockAs(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
@Nullable
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.item.ItemStack usedTool,
float effectChance,
java.util.function.Consumer<net.minecraft.item.ItemStack> droppedItemCallback)
public static boolean isSolidWall(net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos fromPos,
net.minecraft.util.Direction toDirection)
public static boolean noCollisionInSpace(net.minecraft.world.IBlockReader reader,
net.minecraft.util.math.BlockPos pos)
public static void placeSchematicBlock(net.minecraft.world.World world,
net.minecraft.block.BlockState state,
net.minecraft.util.math.BlockPos target,
net.minecraft.item.ItemStack stack,
@Nullable
net.minecraft.nbt.CompoundNBT data)
public static double getBounceMultiplier(net.minecraft.block.Block block)
public static boolean hasBlockSolidSide(net.minecraft.block.BlockState p_220056_0_,
net.minecraft.world.IBlockReader p_220056_1_,
net.minecraft.util.math.BlockPos p_220056_2_,
net.minecraft.util.Direction p_220056_3_)
public static boolean extinguishFire(net.minecraft.world.World world,
@Nullable
net.minecraft.entity.player.PlayerEntity p_175719_1_,
net.minecraft.util.math.BlockPos p_175719_2_,
net.minecraft.util.Direction p_175719_3_)
public static net.minecraft.block.BlockState copyProperties(net.minecraft.block.BlockState fromState,
net.minecraft.block.BlockState toState)
public static <T extends java.lang.Comparable<T>> net.minecraft.block.BlockState copyProperty(net.minecraft.state.Property<T> property,
net.minecraft.block.BlockState fromState,
net.minecraft.block.BlockState toState)