API compiles
This commit is contained in:
@@ -20,7 +20,7 @@ package appeng.me.cluster.implementations;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.block.entity.BlockEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
@@ -125,7 +125,7 @@ public class CraftingCPUCalculator extends MBCalculator {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isValidTile(final TileEntity te) {
|
||||
public boolean isValidTile(final BlockEntity te) {
|
||||
return te instanceof CraftingTileEntity;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,9 +32,9 @@ import net.minecraft.inventory.CraftingInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.nbt.ListNBT;
|
||||
import net.minecraft.util.text.ITextComponent;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.server.ServerWorld;
|
||||
import net.minecraft.server.world.ServerWorld;
|
||||
import net.minecraftforge.fml.hooks.BasicEventHooks;
|
||||
|
||||
import appeng.api.AEApi;
|
||||
@@ -92,7 +92,7 @@ public final class CraftingCPUCluster implements IAECluster, ICraftingCPU {
|
||||
private final List<CraftingMonitorTileEntity> status = new ArrayList<>();
|
||||
private final HashMap<IMEMonitorHandlerReceiver<IAEItemStack>, Object> listeners = new HashMap<>();
|
||||
private ICraftingLink myLastLink;
|
||||
private ITextComponent myName = null;
|
||||
private Text myName = null;
|
||||
private boolean isDestroyed = false;
|
||||
/**
|
||||
* crafting job info
|
||||
@@ -834,7 +834,7 @@ public final class CraftingCPUCluster implements IAECluster, ICraftingCPU {
|
||||
}
|
||||
|
||||
@Override
|
||||
public ITextComponent getName() {
|
||||
public Text getName() {
|
||||
return this.myName;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
package appeng.me.cluster.implementations;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.block.entity.BlockEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.BlockView;
|
||||
import net.minecraft.world.World;
|
||||
@@ -131,7 +131,7 @@ public class QuantumCalculator extends MBCalculator {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isValidTile(final TileEntity te) {
|
||||
public boolean isValidTile(final BlockEntity te) {
|
||||
return te instanceof QuantumBridgeTileEntity;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ package appeng.me.cluster.implementations;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.block.entity.BlockEntity;
|
||||
import net.minecraft.util.math.ChunkPos;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.dimension.DimensionType;
|
||||
@@ -165,7 +165,7 @@ public class QuantumCluster implements ILocatable, IAECluster {
|
||||
final DimensionType id = theWorld.dimension.getType();
|
||||
final World cur = theWorld.getServer().getWorld(id);
|
||||
|
||||
final TileEntity te = theWorld.getTileEntity(qc.center.getPos());
|
||||
final BlockEntity te = theWorld.getTileEntity(qc.center.getPos());
|
||||
return te != qc.center || theWorld != cur;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
package appeng.me.cluster.implementations;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.block.entity.BlockEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
@@ -90,7 +90,7 @@ public class SpatialPylonCalculator extends MBCalculator {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isValidTile(final TileEntity te) {
|
||||
public boolean isValidTile(final BlockEntity te) {
|
||||
return te instanceof SpatialPylonTileEntity;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user