Fixed imports

This commit is contained in:
drcrazy 2019-07-15 10:59:08 +03:00
parent 5d93843a1e
commit 4f1593771e
12 changed files with 3 additions and 28 deletions

View file

@ -129,7 +129,6 @@ public class BlockAlarm extends BaseTileBlock {
return null; return null;
} }
@SuppressWarnings("deprecation")
@Override @Override
public boolean activate(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn, Hand hand, BlockHitResult hitResult) { public boolean activate(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn, Hand hand, BlockHitResult hitResult) {
ItemStack stack = playerIn.getStackInHand(Hand.MAIN_HAND); ItemStack stack = playerIn.getStackInHand(Hand.MAIN_HAND);

View file

@ -92,7 +92,6 @@ public class BlockNuke extends BaseBlock {
} }
} }
@SuppressWarnings("deprecation")
@Override @Override
public void onBlockAdded(BlockState state, World worldIn, BlockPos pos, BlockState oldState, boolean b) { public void onBlockAdded(BlockState state, World worldIn, BlockPos pos, BlockState oldState, boolean b) {
super.onBlockAdded(state, worldIn, pos, oldState, b); super.onBlockAdded(state, worldIn, pos, oldState, b);

View file

@ -37,7 +37,6 @@ import net.minecraft.state.property.DirectionProperty;
import net.minecraft.state.property.Properties; import net.minecraft.state.property.Properties;
import net.minecraft.tag.BlockTags; import net.minecraft.tag.BlockTags;
import net.minecraft.tag.Tag; import net.minecraft.tag.Tag;
import net.minecraft.util.DefaultedList;
import net.minecraft.util.Hand; import net.minecraft.util.Hand;
import net.minecraft.util.hit.BlockHitResult; import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
@ -56,7 +55,6 @@ import techreborn.items.tool.ItemTreeTap;
import techreborn.items.tool.basic.ItemElectricTreetap; import techreborn.items.tool.basic.ItemElectricTreetap;
import java.util.Random; import java.util.Random;
import java.util.function.Consumer;
/** /**
* Created by modmuss50 on 19/02/2016. * Created by modmuss50 on 19/02/2016.
@ -99,7 +97,6 @@ public class BlockRubberLog extends LogBlock {
} }
} }
@SuppressWarnings("deprecation")
@Override @Override
public void onScheduledTick(BlockState state, World worldIn, BlockPos pos, Random random) { public void onScheduledTick(BlockState state, World worldIn, BlockPos pos, Random random) {
super.onScheduledTick(state, worldIn, pos, random); super.onScheduledTick(state, worldIn, pos, random);
@ -118,7 +115,6 @@ public class BlockRubberLog extends LogBlock {
} }
} }
@SuppressWarnings("deprecation")
@Override @Override
public boolean activate(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn, public boolean activate(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn,
Hand hand, BlockHitResult hitResult) { Hand hand, BlockHitResult hitResult) {

View file

@ -25,7 +25,6 @@
package techreborn.blocks; package techreborn.blocks;
import net.fabricmc.fabric.api.block.FabricBlockSettings; import net.fabricmc.fabric.api.block.FabricBlockSettings;
import net.minecraft.block.Block;
import net.minecraft.block.Material; import net.minecraft.block.Material;
import net.minecraft.block.MaterialColor; import net.minecraft.block.MaterialColor;
import net.minecraft.block.SlabBlock; import net.minecraft.block.SlabBlock;

View file

@ -143,7 +143,6 @@ public class BlockLamp extends BaseTileBlock {
return BlockRenderLayer.CUTOUT; return BlockRenderLayer.CUTOUT;
} }
@SuppressWarnings("deprecation")
@Override @Override
public boolean activate(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn, Hand hand, BlockHitResult hitResult) { public boolean activate(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn, Hand hand, BlockHitResult hitResult) {
ItemStack stack = playerIn.getStackInHand(Hand.MAIN_HAND); ItemStack stack = playerIn.getStackInHand(Hand.MAIN_HAND);

View file

@ -102,7 +102,6 @@ public abstract class BlockEnergyStorage extends BaseTileBlock {
builder.add(FACING); builder.add(FACING);
} }
@SuppressWarnings("deprecation")
@Override @Override
public boolean activate(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn, Hand hand, BlockHitResult hitResult) { public boolean activate(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn, Hand hand, BlockHitResult hitResult) {
ItemStack stack = playerIn.getStackInHand(Hand.MAIN_HAND); ItemStack stack = playerIn.getStackInHand(Hand.MAIN_HAND);

View file

@ -25,7 +25,6 @@
package techreborn.blocks.storage; package techreborn.blocks.storage;
import net.fabricmc.fabric.api.block.FabricBlockSettings; import net.fabricmc.fabric.api.block.FabricBlockSettings;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState; import net.minecraft.block.BlockState;
import net.minecraft.block.Material; import net.minecraft.block.Material;
import net.minecraft.block.entity.BlockEntity; import net.minecraft.block.entity.BlockEntity;
@ -92,7 +91,6 @@ public class BlockLSUStorage extends BaseTileBlock {
} }
// Block // Block
@SuppressWarnings("deprecation")
@Override @Override
public boolean activate(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn, Hand hand, BlockHitResult hitResult) { public boolean activate(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn, Hand hand, BlockHitResult hitResult) {
ItemStack stack = playerIn.getStackInHand(Hand.MAIN_HAND); ItemStack stack = playerIn.getStackInHand(Hand.MAIN_HAND);

View file

@ -92,7 +92,6 @@ public abstract class BlockTransformer extends BaseTileBlock {
builder.add(FACING); builder.add(FACING);
} }
@SuppressWarnings("deprecation")
@Override @Override
public boolean activate(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn, Hand hand, BlockHitResult hitResult) { public boolean activate(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn, Hand hand, BlockHitResult hitResult) {
ItemStack stack = playerIn.getStackInHand(Hand.MAIN_HAND); ItemStack stack = playerIn.getStackInHand(Hand.MAIN_HAND);

View file

@ -25,18 +25,11 @@
package techreborn.client; package techreborn.client;
import net.fabricmc.fabric.api.client.screen.ScreenProviderRegistry; import net.fabricmc.fabric.api.client.screen.ScreenProviderRegistry;
import net.fabricmc.fabric.api.container.ContainerFactory;
import net.fabricmc.fabric.api.container.ContainerProviderRegistry; import net.fabricmc.fabric.api.container.ContainerProviderRegistry;
import net.minecraft.block.entity.BlockEntity; import net.minecraft.block.entity.BlockEntity;
import net.minecraft.client.gui.screen.ContainerScreenRegistry;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.gui.screen.ingame.AbstractContainerScreen; import net.minecraft.client.gui.screen.ingame.AbstractContainerScreen;
import net.minecraft.container.Container;
import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.Identifier;
import net.minecraft.util.PacketByteBuf;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import reborncore.client.containerBuilder.IContainerProvider; import reborncore.client.containerBuilder.IContainerProvider;
import reborncore.client.containerBuilder.builder.BuiltContainer; import reborncore.client.containerBuilder.builder.BuiltContainer;
import reborncore.mixin.extensions.ContainerExtensions; import reborncore.mixin.extensions.ContainerExtensions;
@ -67,9 +60,6 @@ import techreborn.tiles.storage.TileMediumVoltageSU;
import techreborn.tiles.storage.idsu.TileInterdimensionalSU; import techreborn.tiles.storage.idsu.TileInterdimensionalSU;
import techreborn.tiles.storage.lesu.TileLapotronicSU; import techreborn.tiles.storage.lesu.TileLapotronicSU;
import java.util.Arrays;
import java.util.function.Consumer;
public class GuiHandler { public class GuiHandler {
public static void register(){ public static void register(){

View file

@ -24,8 +24,6 @@
package techreborn.items.armor; package techreborn.items.armor;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.entity.Entity; import net.minecraft.entity.Entity;
import net.minecraft.entity.EquipmentSlot; import net.minecraft.entity.EquipmentSlot;
import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.player.PlayerEntity;
@ -68,7 +66,7 @@ public class ItemLapotronicOrbpack extends ArmorItem implements IEnergyItemInfo,
@Override @Override
public void inventoryTick(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected) { public void inventoryTick(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected) {
if (entityIn instanceof PlayerEntity) { if (entityIn instanceof PlayerEntity) {
ItemLithiumIonBatpack.EnvTypeributePowerToInventory(worldIn, (PlayerEntity) entityIn, stack, ItemLithiumIonBatpack.distributePowerToInventory(worldIn, (PlayerEntity) entityIn, stack,
(int) transferLimit); (int) transferLimit);
} }
} }

View file

@ -52,7 +52,7 @@ public class ItemLithiumIonBatpack extends ArmorItem implements IEnergyItemInfo,
super(ArmorMaterials.DIAMOND, EquipmentSlot.CHEST, new Item.Settings().group(TechReborn.ITEMGROUP).maxCount(1)); super(ArmorMaterials.DIAMOND, EquipmentSlot.CHEST, new Item.Settings().group(TechReborn.ITEMGROUP).maxCount(1));
} }
public static void EnvTypeributePowerToInventory(World world, PlayerEntity player, ItemStack itemStack, int maxSend) { public static void distributePowerToInventory(World world, PlayerEntity player, ItemStack itemStack, int maxSend) {
if (world.isClient) { if (world.isClient) {
return; return;
} }
@ -71,7 +71,7 @@ public class ItemLithiumIonBatpack extends ArmorItem implements IEnergyItemInfo,
@Override @Override
public void inventoryTick(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected) { public void inventoryTick(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected) {
if (entityIn instanceof PlayerEntity) { if (entityIn instanceof PlayerEntity) {
EnvTypeributePowerToInventory(worldIn, (PlayerEntity) entityIn, stack, (int) transferLimit); distributePowerToInventory(worldIn, (PlayerEntity) entityIn, stack, (int) transferLimit);
} }
} }

View file

@ -30,7 +30,6 @@ import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks; import net.minecraft.block.Blocks;
import net.minecraft.client.item.TooltipContext; import net.minecraft.client.item.TooltipContext;
import net.minecraft.client.resource.language.I18n; import net.minecraft.client.resource.language.I18n;
import net.minecraft.entity.ItemEntity;
import net.minecraft.entity.LivingEntity; import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemGroup; import net.minecraft.item.ItemGroup;