Remove unnecessary modifiers and semicolons

This commit is contained in:
Tom Elfring committed 2017-08-05 13:30:20 +02:00
1 parent 6bee0a34ce
commit 6576335f44
117 files changed
+353 -353

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ public enum EnumColor implements IStringSerializable
public String dyeName;
private EnumColor(String s, String n, String dye, int[] rgb, int meta)
EnumColor(String s, String n, String dye, int[] rgb, int meta)
{
code = s;
unlocalizedName = n;
@@ -18,5 +18,5 @@ public interface IAlloyInteraction
* @param stack - the stack of alloy being right-clicked
* @param tierOrdinal - the ordinal tier of the alloy (1 = advanced, 2 = elite, 3 = ultimate)
*/
public void onAlloyInteraction(EntityPlayer player, EnumHand hand, ItemStack stack, int tierOrdinal);
void onAlloyInteraction(EntityPlayer player, EnumHand hand, ItemStack stack, int tierOrdinal);
}
@@ -2,7 +2,7 @@ package mekanism.api;
public interface IClientTicker
{
public void clientTick();
void clientTick();
public boolean needsTicks();
boolean needsTicks();
}
@@ -10,25 +10,25 @@ import net.minecraft.nbt.NBTTagCompound;
*/
public interface IConfigCardAccess
{
public static interface ISpecialConfigData extends IConfigCardAccess
interface ISpecialConfigData extends IConfigCardAccess
{
/**
* Collects the TileEntity's filter card data into the parameterized NBTTagCompound.
* @param nbtTags - the NBTTagCompound of the filter card ItemStack
* @return the NBTTagCompound that now contains the TileEntity's filter card data
*/
public NBTTagCompound getConfigurationData(NBTTagCompound nbtTags);
NBTTagCompound getConfigurationData(NBTTagCompound nbtTags);
/**
* Retrieves the TileEntity's data contained in the filter card based on the given NBTTagCompopund.
* @param nbtTags - the NBTTagCompound of the filter card ItemStack
*/
public void setConfigurationData(NBTTagCompound nbtTags);
void setConfigurationData(NBTTagCompound nbtTags);
/**
* A String name of this TileEntity that will be displayed as the type of data on the filter card.
* @return the String name of this TileEntity
*/
public String getDataType();
String getDataType();
}
}
@@ -17,7 +17,7 @@ public interface IConfigurable
* @param side - the side the block was clicked on
* @return action that was performed
*/
public EnumActionResult onSneakRightClick(EntityPlayer player, EnumFacing side);
EnumActionResult onSneakRightClick(EntityPlayer player, EnumFacing side);
/**
* Called when a player right clicks this block with a Configurator.
@@ -25,5 +25,5 @@ public interface IConfigurable
* @param side - the side the block was clicked on
* @return action that was performed
*/
public EnumActionResult onRightClick(EntityPlayer player, EnumFacing side);
EnumActionResult onRightClick(EntityPlayer player, EnumFacing side);
}
@@ -7,5 +7,5 @@ package mekanism.api;
*/
public interface IEvaporationSolar
{
public boolean seesSun();
boolean seesSun();
}
+10 -10
View File
@@ -5,24 +5,24 @@ import net.minecraft.util.EnumFacing;
public interface IHeatTransfer
{
/**The value of the zero point of our temperature scale in kelvin*/
public static final double AMBIENT_TEMP = 300;
double AMBIENT_TEMP = 300;
/**The heat transfer coefficient for air*/
public static final double AIR_INVERSE_COEFFICIENT = 10000;
double AIR_INVERSE_COEFFICIENT = 10000;
public double getTemp();
double getTemp();
public double getInverseConductionCoefficient();
double getInverseConductionCoefficient();
public double getInsulationCoefficient(EnumFacing side);
double getInsulationCoefficient(EnumFacing side);
public void transferHeatTo(double heat);
void transferHeatTo(double heat);
public double[] simulateHeat();
double[] simulateHeat();
public double applyTemperatureChange();
double applyTemperatureChange();
public boolean canConnectHeat(EnumFacing side);
boolean canConnectHeat(EnumFacing side);
public IHeatTransfer getAdjacent(EnumFacing side);
IHeatTransfer getAdjacent(EnumFacing side);
}
+1 -1
View File
@@ -6,5 +6,5 @@ import net.minecraft.util.math.BlockPos;
public interface IMekWrench
{
public boolean canUseWrench(ItemStack stack, EntityPlayer player, BlockPos pos);
boolean canUseWrench(ItemStack stack, EntityPlayer player, BlockPos pos);
}
@@ -14,40 +14,40 @@ public interface IEnergizedItem
* @param itemStack - the ItemStack to check
* @return energy stored
*/
public double getEnergy(ItemStack itemStack);
double getEnergy(ItemStack itemStack);
/**
* Sets this item's stored energy value to a new amount.
* @param itemStack - the ItemStack who's energy value is to be change
* @param amount - new amount of energy
*/
public void setEnergy(ItemStack itemStack, double amount);
void setEnergy(ItemStack itemStack, double amount);
/**
* Gets and returns this item's maximum amount of energy that can be stored.
* @param itemStack - the ItemStack to check
* @return maximum energy
*/
public double getMaxEnergy(ItemStack itemStack);
double getMaxEnergy(ItemStack itemStack);
/**
* Gets and returns how much energy this item can transfer to and from charging slots.
* @param itemStack - the ItemStack to check
* @return transfer amount
*/
public double getMaxTransfer(ItemStack itemStack);
double getMaxTransfer(ItemStack itemStack);
/**
* Gets and returns whether or not this item can receive energy from a charging slot.
* @param itemStack - the ItemStack to check
* @return if the item can receive energy
*/
public boolean canReceive(ItemStack itemStack);
boolean canReceive(ItemStack itemStack);
/**
* Gets and returns whether or not this item can send energy to a charging slot.
* @param itemStack - the ItemStack to check
* @return if the item can send energy
*/
public boolean canSend(ItemStack itemStack);
boolean canSend(ItemStack itemStack);
}
@@ -15,12 +15,12 @@ public interface IStrictEnergyAcceptor
* @param simulate - if the operation should be simulated
* @return energy used
*/
public double acceptEnergy(EnumFacing side, double amount, boolean simulate);
double acceptEnergy(EnumFacing side, double amount, boolean simulate);
/**
* Whether or not this tile entity can accept energy from a certain side.
* @param side - side to check
* @return if tile entity accepts energy
*/
public boolean canReceiveEnergy(EnumFacing side);
boolean canReceiveEnergy(EnumFacing side);
}
@@ -15,12 +15,12 @@ public interface IStrictEnergyOutputter
* @param simulate - if the operation should be simulated
* @return energy sent
*/
public double pullEnergy(EnumFacing side, double amount, boolean simulate);
double pullEnergy(EnumFacing side, double amount, boolean simulate);
/**
* Whether or not this tile entity can output energy on a specific side.
* @param side - side to check
* @return if the tile entity outputs energy
*/
public boolean canOutputEnergy(EnumFacing side);
boolean canOutputEnergy(EnumFacing side);
}
@@ -11,17 +11,17 @@ public interface IStrictEnergyStorage
* Gets the amount of energy this TileEntity is currently storing.
* @return stored energy
*/
public double getEnergy();
double getEnergy();
/**
* Sets the amount of stored energy of this TileEntity to a new amount.
* @param energy - new energy value
*/
public void setEnergy(double energy);
void setEnergy(double energy);
/**
* Gets the maximum amount of energy this TileEntity can store.
* @return maximum energy
*/
public double getMaxEnergy();
double getMaxEnergy();
}
@@ -14,14 +14,14 @@ public interface IGasHandler
* @param stack - gas to add
* @return gas added
*/
public int receiveGas(EnumFacing side, GasStack stack, boolean doTransfer);
int receiveGas(EnumFacing side, GasStack stack, boolean doTransfer);
/**
* Draws a certain amount of gas from this block.
* @param amount - amount to draw
* @return gas drawn
*/
public GasStack drawGas(EnumFacing side, int amount, boolean doTransfer);
GasStack drawGas(EnumFacing side, int amount, boolean doTransfer);
/**
* Whether or not this block can accept gas from a certain side.
@@ -29,7 +29,7 @@ public interface IGasHandler
* @param type - type of gas to check
* @return if block accepts gas
*/
public boolean canReceiveGas(EnumFacing side, Gas type);
boolean canReceiveGas(EnumFacing side, Gas type);
/**
* Whether or not this block can be drawn of gas from a certain side.
@@ -37,5 +37,5 @@ public interface IGasHandler
* @param type - type of gas to check
* @return if block can be drawn of gas
*/
public boolean canDrawGas(EnumFacing side, Gas type);
boolean canDrawGas(EnumFacing side, Gas type);
}
+8 -8
View File
@@ -13,7 +13,7 @@ public interface IGasItem
* Gets the rate of transfer this item can handle.
* @return
*/
public int getRate(ItemStack itemstack);
int getRate(ItemStack itemstack);
/**
* Adds a defined amount of a certain gas to an item.
@@ -22,7 +22,7 @@ public interface IGasItem
* @param amount - the amount of gas to add
* @return the gas that was accepted by the item
*/
public int addGas(ItemStack itemstack, GasStack stack);
int addGas(ItemStack itemstack, GasStack stack);
/**
* Removes the defined amount of a certain gas from the item.
@@ -31,7 +31,7 @@ public interface IGasItem
* @param amount - the amount of gas to remove
* @return the gas that was removed by the item
*/
public GasStack removeGas(ItemStack itemstack, int amount);
GasStack removeGas(ItemStack itemstack, int amount);
/**
* Whether or not this storage tank be given a specific gas.
@@ -39,7 +39,7 @@ public interface IGasItem
* @param type - the type of gas the tank can possibly receive
* @return if the item be charged
*/
public boolean canReceiveGas(ItemStack itemstack, Gas type);
boolean canReceiveGas(ItemStack itemstack, Gas type);
/**
* Whether or not this item can give a gas receiver a certain type of gas.
@@ -47,7 +47,7 @@ public interface IGasItem
* @param type - the type of gas the tank can provide
* @return if the item can provide gas
*/
public boolean canProvideGas(ItemStack itemstack, Gas type);
boolean canProvideGas(ItemStack itemstack, Gas type);
/**
* Get the gas of a declared type.
@@ -55,7 +55,7 @@ public interface IGasItem
* @param data - ItemStack parameter if necessary
* @return gas stored
*/
public GasStack getGas(ItemStack itemstack);
GasStack getGas(ItemStack itemstack);
/**
* Set the gas of a declared type to a new amount;
@@ -63,7 +63,7 @@ public interface IGasItem
* @param data - ItemStack parameter if necessary
* @param amount - amount to store
*/
public void setGas(ItemStack itemstack, GasStack stack);
void setGas(ItemStack itemstack, GasStack stack);
/**
* Gets the maximum amount of gas this tile entity can store.
@@ -71,5 +71,5 @@ public interface IGasItem
* @param data - ItemStack parameter if necessary
* @return maximum gas
*/
public int getMaxGas(ItemStack itemstack);
int getMaxGas(ItemStack itemstack);
}
@@ -14,5 +14,5 @@ public interface ITubeConnection
* @param side - orientation to check
* @return if a tube can connect
*/
public boolean canTubeConnect(EnumFacing side);
boolean canTubeConnect(EnumFacing side);
}
@@ -97,7 +97,7 @@ public class InfuseRegistry
* Gets the private map for InfuseObjects.
* @return private InfuseObject map
*/
public static final Map<ItemStack, InfuseObject> getObjectMap()
public static Map<ItemStack, InfuseObject> getObjectMap()
{
return infuseObjects;
}
@@ -106,7 +106,7 @@ public class InfuseRegistry
* Gets the private map for InfuseTypes.
* @return private InfuseType map
*/
public static final Map<String, InfuseType> getInfuseMap()
public static Map<String, InfuseType> getInfuseMap()
{
return infuseTypes;
}
@@ -4,7 +4,7 @@ import net.minecraft.util.EnumFacing;
public interface ILaserReceptor
{
public void receiveLaserEnergy(double energy, EnumFacing side);
void receiveLaserEnergy(double energy, EnumFacing side);
public boolean canLasersDig();
boolean canLasersDig();
}
@@ -5,7 +5,7 @@ import net.minecraft.util.EnumFacing;
public interface IBlockableConnection
{
public boolean canConnectMutual(EnumFacing side);
boolean canConnectMutual(EnumFacing side);
public boolean canConnect(EnumFacing side);
boolean canConnect(EnumFacing side);
}
@@ -8,59 +8,59 @@ import net.minecraft.world.World;
public interface IGridTransmitter<A, N extends DynamicNetwork<A, N>> extends ITransmitter
{
public boolean hasTransmitterNetwork();
boolean hasTransmitterNetwork();
/**
* Gets the network currently in use by this transmitter segment.
* @return network this transmitter is using
*/
public N getTransmitterNetwork();
N getTransmitterNetwork();
/**
* Sets this transmitter segment's network to a new value.
* @param network - network to set to
*/
public void setTransmitterNetwork(N network);
void setTransmitterNetwork(N network);
public void setRequestsUpdate();
void setRequestsUpdate();
public int getTransmitterNetworkSize();
int getTransmitterNetworkSize();
public int getTransmitterNetworkAcceptorSize();
int getTransmitterNetworkAcceptorSize();
public String getTransmitterNetworkNeeded();
String getTransmitterNetworkNeeded();
public String getTransmitterNetworkFlow();
String getTransmitterNetworkFlow();
public String getTransmitterNetworkBuffer();
String getTransmitterNetworkBuffer();
public double getTransmitterNetworkCapacity();
double getTransmitterNetworkCapacity();
public int getCapacity();
int getCapacity();
public World world();
World world();
public Coord4D coord();
Coord4D coord();
public Coord4D getAdjacentConnectableTransmitterCoord(EnumFacing side);
Coord4D getAdjacentConnectableTransmitterCoord(EnumFacing side);
public A getAcceptor(EnumFacing side);
A getAcceptor(EnumFacing side);
public boolean isValid();
boolean isValid();
public boolean isOrphan();
boolean isOrphan();
public void setOrphan(boolean orphaned);
void setOrphan(boolean orphaned);
public N createEmptyNetwork();
N createEmptyNetwork();
public N mergeNetworks(Collection<N> toMerge);
N mergeNetworks(Collection<N> toMerge);
public N getExternalNetwork(Coord4D from);
N getExternalNetwork(Coord4D from);
public void takeShare();
void takeShare();
public void updateShare();
void updateShare();
public Object getBuffer();
Object getBuffer();
}
@@ -2,9 +2,9 @@ package mekanism.api.transmitters;
public interface INetworkDataHandler
{
public String getNeededInfo();
String getNeededInfo();
public String getStoredInfo();
String getStoredInfo();
public String getFlowInfo();
String getFlowInfo();
}
@@ -7,5 +7,5 @@ public interface ITransmitter
*
* @return TransmissionType this transmitter uses
*/
public TransmissionType getTransmissionType();
TransmissionType getTransmissionType();
}
@@ -14,7 +14,7 @@ public enum TransmissionType
private String name;
private String transmission;
private TransmissionType(String n, String t)
TransmissionType(String n, String t)
{
name = n;
transmission = t;
@@ -67,4 +67,4 @@ public enum TransmissionType
return false;
}
}
}
@@ -161,7 +161,7 @@ public final class HolidayManager
}
}
public static enum Month
public enum Month
{
JANUARY("January"),
FEBRUARY("February"),
@@ -178,7 +178,7 @@ public final class HolidayManager
private final String name;
private Month(String n)
Month(String n)
{
name = n;
}
@@ -7,13 +7,13 @@ import net.minecraft.client.renderer.texture.TextureAtlasSprite;
public interface IGuiWrapper
{
public void drawTexturedRect(int x, int y, int u, int v, int w, int h);
void drawTexturedRect(int x, int y, int u, int v, int w, int h);
public void drawTexturedRectFromIcon(int x, int y, TextureAtlasSprite icon, int w, int h);
void drawTexturedRectFromIcon(int x, int y, TextureAtlasSprite icon, int w, int h);
public void displayTooltip(String s, int xAxis, int yAxis);
void displayTooltip(String s, int xAxis, int yAxis);
public void displayTooltips(List<String> list, int xAxis, int yAxis);
void displayTooltips(List<String> list, int xAxis, int yAxis);
public FontRenderer getFont();
FontRenderer getFont();
}
@@ -83,7 +83,7 @@ public class GuiBoilerTab extends GuiElement
}
}
public static enum BoilerTab
public enum BoilerTab
{
MAIN("GuiGasesTab.png", 54, "gui.main"),
STAT("GuiStatsTab.png", 55, "gui.stats");
@@ -92,7 +92,7 @@ public class GuiBoilerTab extends GuiElement
private int guiId;
private String desc;
private BoilerTab(String s, int id, String s1)
BoilerTab(String s, int id, String s1)
{
path = s;
guiId = id;
@@ -114,4 +114,4 @@ public class GuiBoilerTab extends GuiElement
return LangUtils.localize(desc);
}
}
}
}
@@ -137,9 +137,9 @@ public abstract class GuiElement
public abstract void mouseClicked(int xAxis, int yAxis, int button);
public static interface IInfoHandler
public interface IInfoHandler
{
public List<String> getInfo();
List<String> getInfo();
}
public static class Rectangle4i
@@ -55,8 +55,8 @@ public class GuiEnergyGauge extends GuiGauge
return infoHandler.getEnergyStorage().getEnergy() > 0 ? MekanismUtils.getEnergyDisplay(infoHandler.getEnergyStorage().getEnergy(), infoHandler.getEnergyStorage().getMaxEnergy()) : LangUtils.localize("gui.empty");
}
public static interface IEnergyInfoHandler
public interface IEnergyInfoHandler
{
public IStrictEnergyStorage getEnergyStorage();
IStrictEnergyStorage getEnergyStorage();
}
}
@@ -132,8 +132,8 @@ public class GuiFluidGauge extends GuiGauge<Fluid>
return infoHandler.getTank().getFluid() != null ? LangUtils.localizeFluidStack(infoHandler.getTank().getFluid()) + ": " + amountStr : LangUtils.localize("gui.empty");
}
public static interface IFluidInfoHandler
public interface IFluidInfoHandler
{
public FluidTank getTank();
FluidTank getTank();
}
}
@@ -112,8 +112,8 @@ public class GuiGasGauge extends GuiGauge<Gas>
return (infoHandler.getTank().getGas() != null) ? infoHandler.getTank().getGas().getGas().getLocalizedName() + ": " + infoHandler.getTank().getStored() : LangUtils.localize("gui.empty");
}
public static interface IGasInfoHandler
public interface IGasInfoHandler
{
public GasTank getTank();
GasTank getTank();
}
}
@@ -187,7 +187,7 @@ public abstract class GuiGauge<T> extends GuiElement
return new Rectangle4i(guiWidth + xLocation, guiHeight + yLocation, width, height);
}
public static enum Type
public enum Type
{
STANDARD(null, 18, 60, 0, 0, 1, "GuiGaugeStandard.png"),
STANDARD_YELLOW(EnumColor.YELLOW, 18, 60, 0, 60, 1, "GuiGaugeStandard.png"),
@@ -213,7 +213,7 @@ public abstract class GuiGauge<T> extends GuiElement
public int number;
public String textureLocation;
private Type(EnumColor c, int w, int h, int tx, int ty, int n, String t)
Type(EnumColor c, int w, int h, int tx, int ty, int n, String t)
{
color = c;
width = w;
@@ -143,8 +143,8 @@ public class GuiGraph extends GuiElement
}
}
public static interface GraphDataHandler
public interface GraphDataHandler
{
public String getDataDisplay(int data);
String getDataDisplay(int data);
}
}
@@ -83,7 +83,7 @@ public class GuiMatrixTab extends GuiElement
}
}
public static enum MatrixTab
public enum MatrixTab
{
MAIN("GuiEnergyTab.png", 49, "gui.main"),
STAT("GuiStatsTab.png", 50, "gui.stats");
@@ -92,7 +92,7 @@ public class GuiMatrixTab extends GuiElement
private int guiId;
private String desc;
private MatrixTab(String s, int id, String s1)
MatrixTab(String s, int id, String s1)
{
path = s;
guiId = id;
@@ -42,14 +42,14 @@ public class GuiNumberGauge extends GuiGauge
}
public static interface INumberInfoHandler
public interface INumberInfoHandler
{
public TextureAtlasSprite getIcon();
TextureAtlasSprite getIcon();
public double getLevel();
double getLevel();
public double getMaxLevel();
double getMaxLevel();
public String getText(double level);
String getText(double level);
}
}
@@ -92,7 +92,7 @@ public class GuiProgress extends GuiElement
public int textureX;
public int textureY;
private ProgressBar(int w, int h, int u, int v)
ProgressBar(int w, int h, int u, int v)
{
width = w;
height = h;
@@ -90,7 +90,7 @@ public class GuiSlot extends GuiElement
public int textureX;
public int textureY;
private SlotType(int w, int h, int x, int y)
SlotType(int w, int h, int x, int y)
{
width = w;
height = h;
@@ -115,7 +115,7 @@ public class GuiSlot extends GuiElement
public int textureX;
public int textureY;
private SlotOverlay(int w, int h, int x, int y)
SlotOverlay(int w, int h, int x, int y)
{
width = w;
height = h;
@@ -57,7 +57,7 @@ public class MekanismRenderer
public enum FluidType
{
STILL,
FLOWING;
FLOWING
}
public static TextureAtlasSprite[] colors = new TextureAtlasSprite[256];
@@ -552,8 +552,8 @@ public class MekanismRenderer
return TextureMap.LOCATION_BLOCKS_TEXTURE;
}
public static interface ICustomBlockIcon
public interface ICustomBlockIcon
{
public ResourceLocation getIcon(ItemStack stack, int side);
ResourceLocation getIcon(ItemStack stack, int side);
}
}
@@ -195,7 +195,7 @@ public class ModelCustomArmor extends ModelBiped
return false;
}
public static enum ArmorModel
public enum ArmorModel
{
JETPACK(1, MekanismUtils.getResource(ResourceType.RENDER, "Jetpack.png")),
ARMOREDJETPACK(1, MekanismUtils.getResource(ResourceType.RENDER, "Jetpack.png")),
@@ -212,7 +212,7 @@ public class ModelCustomArmor extends ModelBiped
public static ModelScubaTank scubaTankModel = new ModelScubaTank();
public static ModelFreeRunners freeRunnersModel = new ModelFreeRunners();
private ArmorModel(int i, ResourceLocation r)
ArmorModel(int i, ResourceLocation r)
{
armorSlot = i;
resource = r;
@@ -66,7 +66,7 @@ public class RenderResizableCuboid {
private final VertexFormatElement element;
private EnumShadeType(VertexFormatElement element) {
EnumShadeType(VertexFormatElement element) {
this.element = element;
}
}
@@ -56,7 +56,7 @@ public class MekanismOBJModel extends OBJModel
return ret;
}
public static enum OBJModelType
public enum OBJModelType
{
GLOW_PANEL,
TRANSMITTER
@@ -176,7 +176,7 @@ public abstract class OBJBakedModelBase extends OBJBakedModel
return quadList;
}
public static final void putVertexData(UnpackedBakedQuad.Builder builder, Vertex v, Normal faceNormal, TextureCoordinate defUV, TextureAtlasSprite sprite, VertexFormat format, float[] color)
public static void putVertexData(UnpackedBakedQuad.Builder builder, Vertex v, Normal faceNormal, TextureCoordinate defUV, TextureAtlasSprite sprite, VertexFormat format, float[] color)
{
for(int e = 0; e < format.getElementCount(); e++)
{
@@ -7,5 +7,5 @@ import net.minecraftforge.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public interface IResettableSound extends ITickableSound
{
public void reset();
void reset();
}
@@ -9,23 +9,23 @@ import net.minecraftforge.fml.relauncher.SideOnly;
public interface ISoundSource
{
@SideOnly(Side.CLIENT)
public ResourceLocation getSoundLocation();
ResourceLocation getSoundLocation();
@SideOnly(Side.CLIENT)
public float getVolume();
float getVolume();
@SideOnly(Side.CLIENT)
public float getFrequency();
float getFrequency();
@SideOnly(Side.CLIENT)
public Vec3d getSoundPosition();
Vec3d getSoundPosition();
@SideOnly(Side.CLIENT)
public boolean shouldRepeat();
boolean shouldRepeat();
@SideOnly(Side.CLIENT)
public int getRepeatDelay();
int getRepeatDelay();
@SideOnly(Side.CLIENT)
public AttenuationType getAttenuation();
AttenuationType getAttenuation();
}
@@ -31,7 +31,7 @@ public class SoundHandler
public static Minecraft mc = Minecraft.getMinecraft();
public static enum Channel
public enum Channel
{
JETPACK("jetpack", JetpackSound.class),
GASMASK("gasMask", GasMaskSound.class),
@@ -40,7 +40,7 @@ public class SoundHandler
String channelName;
Class<? extends PlayerSound> soundClass;
private Channel(String name, Class<? extends PlayerSound> clazz)
Channel(String name, Class<? extends PlayerSound> clazz)
{
channelName = name;
soundClass = clazz;
+1 -1
View File
@@ -12,7 +12,7 @@ public enum Resource
private String name;
private Resource(String s)
Resource(String s)
{
name = s;
}
+2 -2
View File
@@ -92,10 +92,10 @@ public class SideData
return (GasTank)tanks[0];
}
public static enum IOState
public enum IOState
{
INPUT,
OUTPUT,
OFF;
OFF
}
}
+31 -31
View File
@@ -25,7 +25,7 @@ public final class Tier
/** The default tiers used in Mekanism.
* @author aidancbrady
*/
public static enum BaseTier implements IStringSerializable
public enum BaseTier implements IStringSerializable
{
BASIC("Basic", EnumColor.BRIGHT_GREEN),
ADVANCED("Advanced", EnumColor.DARK_RED),
@@ -56,7 +56,7 @@ public final class Tier
private String name;
private EnumColor color;
private BaseTier(String s, EnumColor c)
BaseTier(String s, EnumColor c)
{
name = s;
color = c;
@@ -69,7 +69,7 @@ public final class Tier
}
}
public static enum EnergyCubeTier implements ITier, IStringSerializable
public enum EnergyCubeTier implements ITier, IStringSerializable
{
BASIC(2000000, 800),
ADVANCED(8000000, 3200),
@@ -83,7 +83,7 @@ public final class Tier
public double output;
private double baseOutput;
private EnergyCubeTier(double max, double out)
EnergyCubeTier(double max, double out)
{
baseMaxEnergy = maxEnergy = max;
baseOutput = output = out;
@@ -132,7 +132,7 @@ public final class Tier
}
}
public static enum InductionCellTier implements ITier
public enum InductionCellTier implements ITier
{
BASIC(1E9D),
ADVANCED(8E9D),
@@ -142,7 +142,7 @@ public final class Tier
public double maxEnergy;
private double baseMaxEnergy;
private InductionCellTier(double max)
InductionCellTier(double max)
{
baseMaxEnergy = maxEnergy = max;
}
@@ -172,7 +172,7 @@ public final class Tier
}
}
public static enum InductionProviderTier implements ITier
public enum InductionProviderTier implements ITier
{
BASIC(64000),
ADVANCED(512000),
@@ -182,7 +182,7 @@ public final class Tier
public double output;
private double baseOutput;
private InductionProviderTier(double out)
InductionProviderTier(double out)
{
baseOutput = output = out;
}
@@ -212,7 +212,7 @@ public final class Tier
}
}
public static enum FactoryTier
public enum FactoryTier
{
BASIC(3, new ResourceLocation("mekanism", "gui/factory/GuiBasicFactory.png")),
ADVANCED(5, new ResourceLocation("mekanism", "gui/factory/GuiAdvancedFactory.png")),
@@ -240,14 +240,14 @@ public final class Tier
return BaseTier.values()[ordinal()];
}
private FactoryTier(int process, ResourceLocation gui)
FactoryTier(int process, ResourceLocation gui)
{
processes = process;
guiLocation = gui;
}
}
public static enum CableTier implements ITier
public enum CableTier implements ITier
{
BASIC(3200),
ADVANCED(12800),
@@ -257,7 +257,7 @@ public final class Tier
public int cableCapacity;
private int baseCapacity;
private CableTier(int capacity)
CableTier(int capacity)
{
baseCapacity = cableCapacity = capacity;
}
@@ -300,7 +300,7 @@ public final class Tier
}
}
public static enum PipeTier implements ITier
public enum PipeTier implements ITier
{
BASIC(1000, 100),
ADVANCED(4000, 400),
@@ -313,7 +313,7 @@ public final class Tier
public int pipePullAmount;
private int basePull;
private PipeTier(int capacity, int pullAmount)
PipeTier(int capacity, int pullAmount)
{
baseCapacity = pipeCapacity = capacity;
basePull = pipePullAmount = pullAmount;
@@ -360,7 +360,7 @@ public final class Tier
}
}
public static enum TubeTier implements ITier
public enum TubeTier implements ITier
{
BASIC(256, 64),
ADVANCED(1024, 256),
@@ -373,7 +373,7 @@ public final class Tier
public int tubePullAmount;
private int basePull;
private TubeTier(int capacity, int pullAmount)
TubeTier(int capacity, int pullAmount)
{
baseCapacity = tubeCapacity = capacity;
basePull = tubePullAmount = pullAmount;
@@ -420,7 +420,7 @@ public final class Tier
}
}
public static enum TransporterTier implements ITier
public enum TransporterTier implements ITier
{
BASIC(1, 5),
ADVANCED(16, 10),
@@ -433,7 +433,7 @@ public final class Tier
public int speed;
private int baseSpeed;
private TransporterTier(int pull, int s)
TransporterTier(int pull, int s)
{
basePull = pullAmount = pull;
baseSpeed = speed = s;
@@ -480,7 +480,7 @@ public final class Tier
}
}
public static enum ConductorTier implements ITier
public enum ConductorTier implements ITier
{
BASIC(5, 1, 10, new ColourRGBA(0.2, 0.2, 0.2, 1)),
ADVANCED(5, 1, 400, new ColourRGBA(0.2, 0.2, 0.2, 1)),
@@ -498,7 +498,7 @@ public final class Tier
public ColourRGBA baseColour;
private ConductorTier(double inversek, double inverseC, double insulationInversek, ColourRGBA colour)
ConductorTier(double inversek, double inverseC, double insulationInversek, ColourRGBA colour)
{
baseConduction = inverseConduction = inversek;
baseHeatCapacity = inverseHeatCapacity = inverseC;
@@ -551,7 +551,7 @@ public final class Tier
}
}
public static enum FluidTankTier implements ITier
public enum FluidTankTier implements ITier
{
BASIC(14000, 400),
ADVANCED(28000, 800),
@@ -565,7 +565,7 @@ public final class Tier
public int output;
private int baseOutput;
private FluidTankTier(int s, int o)
FluidTankTier(int s, int o)
{
baseStorage = storage = s;
baseOutput = output = o;
@@ -599,7 +599,7 @@ public final class Tier
}
}
public static enum GasTankTier implements ITier, IStringSerializable
public enum GasTankTier implements ITier, IStringSerializable
{
BASIC(64000, 256),
ADVANCED(128000, 512),
@@ -613,7 +613,7 @@ public final class Tier
public int output;
private int baseOutput;
private GasTankTier(int s, int o)
GasTankTier(int s, int o)
{
baseStorage = storage = s;
baseOutput = output = o;
@@ -653,7 +653,7 @@ public final class Tier
}
}
public static enum BinTier implements ITier
public enum BinTier implements ITier
{
BASIC(4096),
ADVANCED(8192),
@@ -664,7 +664,7 @@ public final class Tier
public int storage;
private int baseStorage;
private BinTier(int s)
BinTier(int s)
{
baseStorage = storage = s;
}
@@ -746,14 +746,14 @@ public final class Tier
}
}
public static interface ITier
public interface ITier
{
public BaseTier getBaseTier();
BaseTier getBaseTier();
public void loadConfig();
void loadConfig();
public void readConfig(ByteBuf dataStream);
void readConfig(ByteBuf dataStream);
public void writeConfig(ByteBuf dataStream);
void writeConfig(ByteBuf dataStream);
}
}
+4 -4
View File
@@ -28,7 +28,7 @@ public enum Upgrade
private int maxStack;
private EnumColor color;
private Upgrade(String s, int max, EnumColor c)
Upgrade(String s, int max, EnumColor c)
{
name = s;
maxStack = max;
@@ -172,8 +172,8 @@ public enum Upgrade
return compound;
}
public static interface IUpgradeInfoHandler
public interface IUpgradeInfoHandler
{
public List<String> getInfo(Upgrade upgrade);
List<String> getInfo(Upgrade upgrade);
}
}
}
@@ -11,19 +11,19 @@ public interface IActiveState
* Gets the active state as a boolean.
* @return active state
*/
public boolean getActive();
boolean getActive();
/**
* Sets the active state to a new value.
* @param active - new active state
*/
public void setActive(boolean active);
void setActive(boolean active);
/**
* Whether or not this block has a visual effect when it is on it's active state. Used for rendering.
* @return if the block has a visual effect in it's active state
*/
public boolean renderUpdate();
boolean renderUpdate();
public boolean lightUpdate();
boolean lightUpdate();
}
@@ -24,15 +24,15 @@ import net.minecraftforge.fml.common.Optional.InterfaceList;
})
public interface IAdvancedBoundingBlock extends ICapabilityProvider, IBoundingBlock, ISidedInventory, IEnergySink, IStrictEnergyAcceptor, IStrictEnergyStorage, IEnergyReceiver, IEnergyProvider, IComputerIntegration, ISpecialConfigData, ISecurityTile
{
public int[] getBoundSlots(BlockPos location, EnumFacing side);
int[] getBoundSlots(BlockPos location, EnumFacing side);
public boolean canBoundInsert(BlockPos location, int i, ItemStack itemstack);
boolean canBoundInsert(BlockPos location, int i, ItemStack itemstack);
public boolean canBoundExtract(BlockPos location, int i, ItemStack itemstack, EnumFacing side);
boolean canBoundExtract(BlockPos location, int i, ItemStack itemstack, EnumFacing side);
public boolean canBoundReceiveEnergy(BlockPos location, EnumFacing side);
boolean canBoundReceiveEnergy(BlockPos location, EnumFacing side);
public void onPower();
void onPower();
public void onNoPower();
void onNoPower();
}
@@ -6,7 +6,7 @@ package mekanism.common.base;
public interface IBlockType
{
public String getBlockName();
String getBlockName();
// public Collection<ShapedMekanismRecipe> getRecipes();
//
@@ -14,5 +14,5 @@ public interface IBlockType
//
// public void addRecipe(ShapedMekanismRecipe recipe);
public boolean isEnabled();
boolean isEnabled();
}
@@ -11,10 +11,10 @@ public interface IBoundingBlock
/**
* Called when the main block is placed.
*/
public void onPlace();
void onPlace();
/**
* Called when any part of the structure is broken.
*/
public void onBreak();
void onBreak();
}
@@ -2,5 +2,5 @@ package mekanism.common.base;
public interface IChunkLoadHandler
{
public void onChunkLoad();
void onChunkLoad();
}
@@ -17,25 +17,25 @@ public interface IElectricMachine<INPUT extends MachineInput<INPUT>, OUTPUT exte
/**
* Update call for machines. Use instead of updateEntity() - it's called every tick.
*/
public void onUpdate();
void onUpdate();
/**
* Whether or not this machine can operate.
* @return can operate
*/
public boolean canOperate(RECIPE recipe);
boolean canOperate(RECIPE recipe);
/**
* Runs this machine's operation -- or smelts the item.
*/
public void operate(RECIPE recipe);
void operate(RECIPE recipe);
/**
* Gets this machine's recipes.
*/
public Map<INPUT, RECIPE> getRecipes();
Map<INPUT, RECIPE> getRecipes();
public RECIPE getRecipe();
RECIPE getRecipe();
public INPUT getInput();
INPUT getInput();
}
@@ -25,9 +25,9 @@ import net.minecraftforge.fml.common.Optional.InterfaceList;
})
public interface IEnergyWrapper extends IStrictEnergyStorage, IEnergyReceiver, IEnergyProvider, IEnergySink, IEnergySource, IEnergyStorage, IStrictEnergyAcceptor, IStrictEnergyOutputter, IInventory
{
public boolean sideIsOutput(EnumFacing side);
boolean sideIsOutput(EnumFacing side);
public boolean sideIsConsumer(EnumFacing side);
boolean sideIsConsumer(EnumFacing side);
public double getMaxOutput();
double getMaxOutput();
}
@@ -36,16 +36,16 @@ public interface IFactory
* @param itemStack - stack to check
* @return RecipeType ordinal
*/
public int getRecipeType(ItemStack itemStack);
int getRecipeType(ItemStack itemStack);
/**
* Sets the recipe type of this Smelting Factory to a new value.
* @param type - RecipeType ordinal
* @param itemStack - stack to set
*/
public void setRecipeType(int type, ItemStack itemStack);
void setRecipeType(int type, ItemStack itemStack);
public static enum RecipeType implements IStringSerializable
enum RecipeType implements IStringSerializable
{
SMELTING("Smelting", "smelter", MachineType.ENERGIZED_SMELTER, false, false, Recipe.ENERGIZED_SMELTER),
ENRICHING("Enriching", "enrichment", MachineType.ENRICHMENT_CHAMBER, false, false, Recipe.ENRICHMENT_CHAMBER),
@@ -266,7 +266,7 @@ public interface IFactory
return type;
}
private RecipeType(String s, String s1, MachineType t, boolean b, boolean b1, Recipe r)
RecipeType(String s, String s1, MachineType t, boolean b, boolean b1, Recipe r)
{
name = s;
sound = new ResourceLocation("mekanism", "tile.machine." + s1);
@@ -4,7 +4,7 @@ import mekanism.common.util.FluidContainerUtils.ContainerEditMode;
public interface IFluidContainerManager
{
public ContainerEditMode getContainerEditMode();
ContainerEditMode getContainerEditMode();
public void setContainerEditMode(ContainerEditMode mode);
void setContainerEditMode(ContainerEditMode mode);
}
@@ -5,11 +5,11 @@ import net.minecraftforge.fluids.FluidStack;
public interface IFluidItemWrapper
{
public FluidStack getFluid(ItemStack container);
FluidStack getFluid(ItemStack container);
public int getCapacity(ItemStack container);
int getCapacity(ItemStack container);
public int fill(ItemStack container, FluidStack resource, boolean doFill);
int fill(ItemStack container, FluidStack resource, boolean doFill);
public FluidStack drain(ItemStack container, int maxDrain, boolean doDrain);
FluidStack drain(ItemStack container, int maxDrain, boolean doDrain);
}
@@ -15,7 +15,7 @@ public interface IGuiProvider
* @param pos - gui's position
* @return the Container of the GUI
*/
public Container getServerGui(int ID, EntityPlayer player, World world, BlockPos pos);
Container getServerGui(int ID, EntityPlayer player, World world, BlockPos pos);
/**
* Get the actual interface for a GUI. Client-only.
@@ -25,5 +25,5 @@ public interface IGuiProvider
* @param pos - gui's position
* @return the GuiScreen of the GUI
*/
public Object getClientGui(int ID, EntityPlayer player, World world, BlockPos pos);
Object getClientGui(int ID, EntityPlayer player, World world, BlockPos pos);
}
@@ -11,8 +11,8 @@ import net.minecraftforge.fml.relauncher.SideOnly;
public interface IHasSound
{
@SideOnly(Side.CLIENT)
public SoundWrapper getSound();
SoundWrapper getSound();
@SideOnly(Side.CLIENT)
public boolean shouldPlaySound();
boolean shouldPlaySound();
}
@@ -5,5 +5,5 @@ import net.minecraft.item.ItemStack;
public interface IItemNetwork
{
public void handlePacketData(ItemStack stack, ByteBuf dataStream) throws Exception;
void handlePacketData(ItemStack stack, ByteBuf dataStream) throws Exception;
}
@@ -14,19 +14,19 @@ import net.minecraft.util.EnumFacing;
public interface ILogisticalTransporter extends IGridTransmitter<TileEntity, InventoryNetwork>, IBlockableConnection
{
public TransitResponse insert(Coord4D original, TransitRequest request, EnumColor color, boolean doEmit, int min);
TransitResponse insert(Coord4D original, TransitRequest request, EnumColor color, boolean doEmit, int min);
public TransitResponse insertRR(TileEntityLogisticalSorter outputter, TransitRequest request, EnumColor color, boolean doEmit, int min);
TransitResponse insertRR(TileEntityLogisticalSorter outputter, TransitRequest request, EnumColor color, boolean doEmit, int min);
public void entityEntering(TransporterStack stack, int progress);
void entityEntering(TransporterStack stack, int progress);
public EnumColor getColor();
EnumColor getColor();
public void setColor(EnumColor c);
void setColor(EnumColor c);
public boolean canEmitTo(TileEntity tileEntity, EnumFacing side);
boolean canEmitTo(TileEntity tileEntity, EnumFacing side);
public boolean canReceiveFrom(TileEntity tileEntity, EnumFacing side);
boolean canReceiveFrom(TileEntity tileEntity, EnumFacing side);
public double getCost();
double getCost();
}
@@ -2,7 +2,7 @@ package mekanism.common.base;
public interface IMetaItem
{
public String getTexture(int meta);
String getTexture(int meta);
public int getVariants();
int getVariants();
}
@@ -17,29 +17,29 @@ public interface IModule
* Gets the version of the module.
* @return the module's version
*/
public Version getVersion();
Version getVersion();
/**
* Gets the name of the module. Note that this doesn't include "Mekanism" like the actual module's name does, just the
* unique name. For example, MekanismGenerators returns "Generators" here.
* @return unique name of the module
*/
public String getName();
String getName();
/**
* Writes this module's configuration to a ConfigSync packet.
* @param dataStream - the ByteBuf of the sync packet
*/
public void writeConfig(ByteBuf dataStream) throws IOException;
void writeConfig(ByteBuf dataStream) throws IOException;
/**
* Reads this module's configuration from the original ConfigSync packet.
* @param dataStream - the incoming ByteBuf of the sync packet
*/
public void readConfig(ByteBuf dataStream) throws IOException;
void readConfig(ByteBuf dataStream) throws IOException;
/**
* Called when the player returns to the main menu.
*/
public void resetClient();
void resetClient();
}
@@ -4,7 +4,7 @@ import mekanism.common.util.LangUtils;
public interface IRedstoneControl
{
public static enum RedstoneControl
enum RedstoneControl
{
DISABLED("control.disabled"),
HIGH("control.high"),
@@ -18,7 +18,7 @@ public interface IRedstoneControl
return LangUtils.localize(display);
}
private RedstoneControl(String s)
RedstoneControl(String s)
{
display = s;
}
@@ -28,28 +28,28 @@ public interface IRedstoneControl
* Gets the RedstoneControl type from this block.
* @return this block's RedstoneControl type
*/
public RedstoneControl getControlType();
RedstoneControl getControlType();
/**
* Sets this block's RedstoneControl type to a new value.
* @param type - RedstoneControl type to set
*/
public void setControlType(RedstoneControl type);
void setControlType(RedstoneControl type);
/**
* If the block is getting powered or not by redstone (indirectly).
* @return if the block is getting powered indirectly
*/
public boolean isPowered();
boolean isPowered();
/**
* If the block was getting powered or not by redstone, last tick.
* Used for PULSE mode.
*/
public boolean wasPowered();
boolean wasPowered();
/**
* If the machine can be pulsed.
*/
public boolean canPulse();
boolean canPulse();
}
@@ -15,17 +15,17 @@ public interface ISideConfiguration
* Gets the tile's configuration component.
* @return the tile's configuration component
*/
public TileComponentConfig getConfig();
TileComponentConfig getConfig();
/**
* Gets this machine's current orientation.
* @return machine's current orientation
*/
public EnumFacing getOrientation();
EnumFacing getOrientation();
/**
* Gets this machine's ejector.
* @return
*/
public TileComponentEjector getEjector();
TileComponentEjector getEjector();
}
@@ -14,12 +14,12 @@ public interface ISpecialBounds
* @param block - the Block instance the renderer pertains to.
* @param metadata - metadata of the block being rendered
*/
public void setRenderBounds(Block block, int metadata);
void setRenderBounds(Block block, int metadata);
/**
* Whether or not to call the default setBlockBoundsForItemRender() before rendering this block as an item.
* @param metadata - metadata of the block being rendered
* @return whether or not to call default bound setting on this block's metadata.
*/
public boolean doDefaultBoundSetting(int metadata);
boolean doDefaultBoundSetting(int metadata);
}
@@ -4,7 +4,7 @@ import net.minecraft.item.ItemStack;
public interface ISustainedData
{
public void writeSustainedData(ItemStack itemStack);
void writeSustainedData(ItemStack itemStack);
public void readSustainedData(ItemStack itemStack);
void readSustainedData(ItemStack itemStack);
}
@@ -14,12 +14,12 @@ public interface ISustainedInventory
* @param nbtTags - NBTTagList value to set
* @param data - ItemStack parameter if using on item
*/
public void setInventory(NBTTagList nbtTags, Object... data);
void setInventory(NBTTagList nbtTags, Object... data);
/**
* Gets the inventory tag list from an item or block.
* @param data - ItemStack parameter if using on item
* @return inventory tag list
*/
public NBTTagList getInventory(Object... data);
NBTTagList getInventory(Object... data);
}
@@ -14,19 +14,19 @@ public interface ISustainedTank
* @param nbtTags - NBTTagList value to set
* @param data - ItemStack parameter if using on item
*/
public void setFluidStack(FluidStack fluidStack, Object... data);
void setFluidStack(FluidStack fluidStack, Object... data);
/**
* Gets the tank tag list from an item or block.
* @param data - ItemStack parameter if using on item
* @return inventory tag list
*/
public FluidStack getFluidStack(Object... data);
FluidStack getFluidStack(Object... data);
/**
* Whether or not this block or item has an internal tank.
* @param data - ItemStack parameter if using on item
* @return if the block or item has an internal tank
*/
public boolean hasTank(Object... data);
boolean hasTank(Object... data);
}
@@ -12,9 +12,9 @@ import net.minecraftforge.fluids.FluidUtil;
public interface ITankManager
{
public Object[] getTanks();
Object[] getTanks();
public static class DropperHandler
class DropperHandler
{
public static void useDropper(EntityPlayer player, Object tank, int button)
{
@@ -116,4 +116,4 @@ public interface ITankManager
}
}
}
}
}
@@ -5,7 +5,7 @@ import net.minecraft.item.ItemStack;
public interface ITierItem
{
public BaseTier getBaseTier(ItemStack stack);
BaseTier getBaseTier(ItemStack stack);
public void setBaseTier(ItemStack stack, BaseTier tier);
void setBaseTier(ItemStack stack, BaseTier tier);
}
@@ -4,5 +4,5 @@ import mekanism.common.Tier.BaseTier;
public interface ITierUpgradeable
{
public boolean upgrade(BaseTier upgradeTier);
boolean upgrade(BaseTier upgradeTier);
}
@@ -8,15 +8,15 @@ import net.minecraft.nbt.NBTTagCompound;
public interface ITileComponent
{
public void tick();
void tick();
public void read(NBTTagCompound nbtTags);
void read(NBTTagCompound nbtTags);
public void read(ByteBuf dataStream);
void read(ByteBuf dataStream);
public void write(NBTTagCompound nbtTags);
void write(NBTTagCompound nbtTags);
public void write(ArrayList<Object> data);
void write(ArrayList<Object> data);
public void invalidate();
void invalidate();
}
@@ -15,12 +15,12 @@ public interface ITileNetwork
* Receive and manage a packet's data.
* @param dataStream
*/
public void handlePacketData(ByteBuf dataStream) throws Exception;
void handlePacketData(ByteBuf dataStream) throws Exception;
/**
* Gets an ArrayList of data this tile entity keeps synchronized with the client.
* @param data - list of data
* @return ArrayList
*/
public ArrayList<Object> getNetworkedData(ArrayList<Object> data);
ArrayList<Object> getNetworkedData(ArrayList<Object> data);
}
@@ -5,5 +5,5 @@ import net.minecraft.item.ItemStack;
public interface IUpgradeItem
{
public Upgrade getUpgradeType(ItemStack stack);
Upgrade getUpgradeType(ItemStack stack);
}
@@ -4,5 +4,5 @@ import mekanism.common.tile.component.TileComponentUpgrade;
public interface IUpgradeTile
{
public TileComponentUpgrade getComponent();
TileComponentUpgrade getComponent();
}
@@ -50,7 +50,7 @@ public class BlockStateBasic extends ExtendedBlockState
super(block, new IProperty[] {BlockStateFacing.facingProperty, typeProperty, activeProperty, tierProperty}, new IUnlistedProperty[] {});
}
public static enum BasicBlock
public enum BasicBlock
{
BASIC_BLOCK_1,
BASIC_BLOCK_2;
@@ -81,7 +81,7 @@ public class BlockStateBasic extends ExtendedBlockState
}
}
public static enum BasicBlockType implements IStringSerializable
public enum BasicBlockType implements IStringSerializable
{
OSMIUM_BLOCK(BasicBlock.BASIC_BLOCK_1, 0, "OsmiumBlock", null, false, Predicates.<EnumFacing>alwaysFalse(), false, false, true),
BRONZE_BLOCK(BasicBlock.BASIC_BLOCK_1, 1, "BronzeBlock", null, false, Predicates.<EnumFacing>alwaysFalse(), false, false, true),
@@ -121,7 +121,7 @@ public class BlockStateBasic extends ExtendedBlockState
public boolean tiers;
public boolean isBeaconBase;
private BasicBlockType(BasicBlock block, int metadata, String s, Class<? extends TileEntity> tileClass, boolean hasDesc, Predicate<EnumFacing> facingAllowed, boolean activeState, boolean t, boolean beaconBase)
BasicBlockType(BasicBlock block, int metadata, String s, Class<? extends TileEntity> tileClass, boolean hasDesc, Predicate<EnumFacing> facingAllowed, boolean activeState, boolean t, boolean beaconBase)
{
blockType = block;
meta = metadata;
@@ -17,7 +17,7 @@ public class BlockStateOre extends BlockStateContainer
super(block, typeProperty);
}
public static enum EnumOreType implements IStringSerializable
public enum EnumOreType implements IStringSerializable
{
OSMIUM,
COPPER,
@@ -19,7 +19,7 @@ public class BlockStatePlastic extends BlockStateContainer
super(block, colorProperty);
}
public static enum PlasticBlockType implements IStringSerializable
public enum PlasticBlockType implements IStringSerializable
{
PLASTIC,
SLICK,
@@ -42,7 +42,7 @@ public class BlockStateTransmitter extends ExtendedBlockState
private boolean transparencyRender;
private boolean tiers;
private TransmitterType(String name, Size s, TransmissionType type, boolean transparency, boolean b)
TransmitterType(String name, Size s, TransmissionType type, boolean transparency, boolean b)
{
unlocalizedName = name;
size = s;
@@ -82,14 +82,14 @@ public class BlockStateTransmitter extends ExtendedBlockState
return tiers;
}
public static enum Size
public enum Size
{
SMALL(6),
LARGE(8);
public int centerSize;
private Size(int size)
Size(int size)
{
centerSize = size;
}
@@ -7,7 +7,7 @@ import net.minecraft.util.math.ChunkPos;
public interface IChunkLoader
{
public TileComponentChunkLoader getChunkLoader();
TileComponentChunkLoader getChunkLoader();
public Set<ChunkPos> getChunkSet();
Set<ChunkPos> getChunkSet();
}
@@ -154,7 +154,7 @@ public class ThreadMinerSearch extends Thread
state = State.IDLE;
}
public static enum State
public enum State
{
IDLE("Not ready"),
SEARCHING("Searching"),
@@ -163,7 +163,7 @@ public class ThreadMinerSearch extends Thread
public String desc;
private State(String s)
State(String s)
{
desc = s;
}
@@ -345,7 +345,7 @@ public class TransporterStack
return getPath().get(0);
}
public static enum Path
public enum Path
{
DEST, HOME, NONE
}
@@ -2,5 +2,5 @@ package mekanism.common.frequency;
public interface IFrequencyHandler
{
public Frequency getFrequency(FrequencyManager manager);
Frequency getFrequency(FrequencyManager manager);
}
@@ -7,7 +7,7 @@ import net.minecraft.inventory.IInventory;
*/
public interface IComputerIntegration extends IInventory
{
public String[] getMethods();
String[] getMethods();
public Object[] invoke(int method, Object[] args) throws Exception;
Object[] invoke(int method, Object[] args) throws Exception;
}
@@ -284,7 +284,7 @@ public class ItemConfigurator extends ItemEnergized implements IMekWrench, ITool
return getState(stack) == ConfiguratorMode.WRENCH;
}
public static enum ConfiguratorMode
public enum ConfiguratorMode
{
CONFIGURATE_ITEMS("configurate", "(" + TransmissionType.ITEM.localize() + ")", EnumColor.BRIGHT_GREEN, true),
CONFIGURATE_FLUIDS("configurate", "(" + TransmissionType.FLUID.localize() + ")", EnumColor.BRIGHT_GREEN, true),
@@ -300,7 +300,7 @@ public class ItemConfigurator extends ItemEnergized implements IMekWrench, ITool
private EnumColor color;
private boolean configurating;
private ConfiguratorMode(String s, String s1, EnumColor c, boolean b)
ConfiguratorMode(String s, String s1, EnumColor c, boolean b)
{
name = s;
info = s1;
@@ -185,7 +185,7 @@ public class ItemFlamethrower extends ItemMekanism implements IGasItem
ItemDataUtils.setInt(stack, "mode", mode.ordinal());
}
public static enum FlamethrowerMode
public enum FlamethrowerMode
{
COMBAT("tooltip.flamethrower.combat", EnumColor.YELLOW),
HEAT("tooltip.flamethrower.heat", EnumColor.ORANGE),
@@ -194,7 +194,7 @@ public class ItemFlamethrower extends ItemMekanism implements IGasItem
private String unlocalized;
private EnumColor color;
private FlamethrowerMode(String s, EnumColor c)
FlamethrowerMode(String s, EnumColor c)
{
unlocalized = s;
color = c;
@@ -53,7 +53,7 @@ public class ItemHDPE extends ItemMekanism implements IMetaItem
private String name;
private PlasticItem(String itemName)
PlasticItem(String itemName)
{
name = itemName;
}
@@ -225,7 +225,7 @@ public class ItemJetpack extends ItemArmor implements IGasItem, ISpecialArmor
list.add(filled);
}
public static enum JetpackMode
public enum JetpackMode
{
NORMAL("tooltip.jetpack.regular", EnumColor.DARK_GREEN),
HOVER("tooltip.jetpack.hover", EnumColor.DARK_AQUA),
@@ -234,7 +234,7 @@ public class ItemJetpack extends ItemArmor implements IGasItem, ISpecialArmor
private String unlocalized;
private EnumColor color;
private JetpackMode(String s, EnumColor c)
JetpackMode(String s, EnumColor c)
{
unlocalized = s;
color = c;
@@ -6,9 +6,9 @@ import net.minecraft.util.EnumHand;
public interface IMultiblock<T extends SynchronizedData<T>>
{
public T getSynchronizedData();
T getSynchronizedData();
public boolean onActivate(EntityPlayer player, EnumHand hand, ItemStack stack);
boolean onActivate(EntityPlayer player, EnumHand hand, ItemStack stack);
public void doUpdate();
void doUpdate();
}
@@ -8,11 +8,11 @@ import net.minecraft.util.EnumHand;
public interface IStructuralMultiblock
{
public boolean onActivate(EntityPlayer player, EnumHand hand, ItemStack stack);
boolean onActivate(EntityPlayer player, EnumHand hand, ItemStack stack);
public boolean canInterface(TileEntity controller);
boolean canInterface(TileEntity controller);
public void setController(Coord4D coord);
void setController(Coord4D coord);
public void doUpdate();
void doUpdate();
}
@@ -218,7 +218,7 @@ public class PacketConfigurationUpdate implements IMessageHandler<ConfigurationU
}
}
public static enum ConfigurationPacket
public enum ConfigurationPacket
{
EJECT, SIDE_DATA, EJECT_COLOR, INPUT_COLOR, STRICT_INPUT
}
@@ -268,7 +268,7 @@ public class PacketDigitalMinerGui implements IMessageHandler<DigitalMinerGuiMes
}
}
public static enum MinerGuiPacket
public enum MinerGuiPacket
{
SERVER, CLIENT, SERVER_INDEX, CLIENT_INDEX
}
@@ -110,9 +110,9 @@ public class PacketFlamethrowerData implements IMessageHandler<FlamethrowerDataM
}
}
public static enum FlamethrowerPacket
public enum FlamethrowerPacket
{
UPDATE,
MODE;
MODE
}
}
@@ -136,10 +136,10 @@ public class PacketJetpackData implements IMessageHandler<JetpackDataMessage, IM
}
}
public static enum JetpackPacket
public enum JetpackPacket
{
UPDATE,
FULL,
MODE;
}
MODE
}
}
@@ -241,7 +241,7 @@ public class PacketLogisticalSorterGui implements IMessageHandler<LogisticalSort
}
}
public static enum SorterGuiPacket
public enum SorterGuiPacket
{
SERVER, CLIENT, SERVER_INDEX, CLIENT_INDEX
}
@@ -219,7 +219,7 @@ public class PacketOredictionificatorGui implements IMessageHandler<Oredictionif
}
}
public static enum OredictionificatorGuiPacket
public enum OredictionificatorGuiPacket
{
SERVER, CLIENT, SERVER_INDEX, CLIENT_INDEX
}
@@ -187,7 +187,7 @@ public class PacketPersonalChest implements IMessageHandler<PersonalChestMessage
}
}
public static enum PersonalChestPacketType
public enum PersonalChestPacketType
{
CLIENT_OPEN,
SERVER_OPEN
@@ -407,12 +407,12 @@ public class PacketPortableTeleporter implements IMessageHandler<PortableTelepor
}
}
public static enum PortableTeleporterPacketType
public enum PortableTeleporterPacketType
{
DATA_REQUEST,
DATA_RESPONSE,
SET_FREQ,
DEL_FREQ,
TELEPORT;
}
TELEPORT
}
}
@@ -180,12 +180,12 @@ public class PacketRobit implements IMessageHandler<RobitMessage, IMessage>
}
}
public static enum RobitPacketType
public enum RobitPacketType
{
GUI,
FOLLOW,
NAME,
GO_HOME,
DROP_PICKUP;
}
DROP_PICKUP
}
}
Loaded 100 of 117 files, more files were not shown because too many files have changed in this diff. Show more