use of net.minecraft.block.entity.BlockEntity in project CopperEquipment by Redy1aye.
the class Dryer method onStateReplaced.
@Override
public void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) {
if (state.getBlock() != newState.getBlock()) {
BlockEntity blockEntity = world.getBlockEntity(pos);
if (blockEntity instanceof DryerBlockEntity) {
ItemScatterer.spawn(world, pos, (DryerBlockEntity) blockEntity);
world.updateComparators(pos, this);
}
super.onStateReplaced(state, world, pos, newState, moved);
}
}
Aggregations