mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-14 19:25:43 +00:00
Remove accessibility modifiers from all enums and interfaces
This commit is contained in:
parent
5a60818c99
commit
2e901a063d
@ -14,32 +14,32 @@ import dan200.computercraft.core.terminal.Terminal;
|
||||
|
||||
public interface IAPIEnvironment
|
||||
{
|
||||
public static interface IPeripheralChangeListener
|
||||
interface IPeripheralChangeListener
|
||||
{
|
||||
public void onPeripheralChanged( int side, IPeripheral newPeripheral );
|
||||
void onPeripheralChanged( int side, IPeripheral newPeripheral );
|
||||
}
|
||||
|
||||
public Computer getComputer();
|
||||
public int getComputerID();
|
||||
public IComputerEnvironment getComputerEnvironment();
|
||||
public Terminal getTerminal();
|
||||
public FileSystem getFileSystem();
|
||||
Computer getComputer();
|
||||
int getComputerID();
|
||||
IComputerEnvironment getComputerEnvironment();
|
||||
Terminal getTerminal();
|
||||
FileSystem getFileSystem();
|
||||
|
||||
public void shutdown();
|
||||
public void reboot();
|
||||
public void queueEvent( String event, Object[] args );
|
||||
void shutdown();
|
||||
void reboot();
|
||||
void queueEvent( String event, Object[] args );
|
||||
|
||||
public void setOutput( int side, int output );
|
||||
public int getOutput( int side );
|
||||
public int getInput( int side );
|
||||
void setOutput( int side, int output );
|
||||
int getOutput( int side );
|
||||
int getInput( int side );
|
||||
|
||||
public void setBundledOutput( int side, int output );
|
||||
public int getBundledOutput( int side );
|
||||
public int getBundledInput( int side );
|
||||
void setBundledOutput( int side, int output );
|
||||
int getBundledOutput( int side );
|
||||
int getBundledInput( int side );
|
||||
|
||||
public void setPeripheralChangeListener( IPeripheralChangeListener listener );
|
||||
public IPeripheral getPeripheral( int side );
|
||||
void setPeripheralChangeListener( IPeripheralChangeListener listener );
|
||||
IPeripheral getPeripheral( int side );
|
||||
|
||||
public String getLabel();
|
||||
public void setLabel( String label );
|
||||
String getLabel();
|
||||
void setLabel( String label );
|
||||
}
|
||||
|
@ -9,9 +9,9 @@ import dan200.computercraft.api.lua.ILuaObject;
|
||||
|
||||
public interface ILuaAPI extends ILuaObject
|
||||
{
|
||||
public String[] getNames();
|
||||
String[] getNames();
|
||||
|
||||
public void startup(); // LT
|
||||
public void advance( double _dt ); // MT
|
||||
public void shutdown(); // LT
|
||||
void startup(); // LT
|
||||
void advance( double _dt ); // MT
|
||||
void shutdown(); // LT
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ public class Computer
|
||||
"bottom", "top", "back", "front", "right", "left",
|
||||
};
|
||||
|
||||
private static enum State
|
||||
private enum State
|
||||
{
|
||||
Off,
|
||||
Starting,
|
||||
|
@ -10,13 +10,13 @@ import dan200.computercraft.api.filesystem.IWritableMount;
|
||||
|
||||
public interface IComputerEnvironment
|
||||
{
|
||||
public int getDay();
|
||||
public double getTimeOfDay();
|
||||
public boolean isColour();
|
||||
public long getComputerSpaceLimit();
|
||||
public String getHostString();
|
||||
int getDay();
|
||||
double getTimeOfDay();
|
||||
boolean isColour();
|
||||
long getComputerSpaceLimit();
|
||||
String getHostString();
|
||||
|
||||
public int assignNewID();
|
||||
public IWritableMount createSaveDirMount( String subPath, long capacity );
|
||||
public IMount createResourceMount( String domain, String subPath );
|
||||
int assignNewID();
|
||||
IWritableMount createSaveDirMount( String subPath, long capacity );
|
||||
IMount createResourceMount( String domain, String subPath );
|
||||
}
|
||||
|
@ -8,6 +8,6 @@ package dan200.computercraft.core.computer;
|
||||
|
||||
public interface ITask
|
||||
{
|
||||
public Computer getOwner();
|
||||
public void execute();
|
||||
Computer getOwner();
|
||||
void execute();
|
||||
}
|
||||
|
@ -9,5 +9,5 @@ package dan200.computercraft.core.filesystem;
|
||||
import java.io.IOException;
|
||||
|
||||
public interface IMountedFile {
|
||||
public void close() throws IOException;
|
||||
void close() throws IOException;
|
||||
}
|
||||
|
@ -9,8 +9,8 @@ package dan200.computercraft.core.filesystem;
|
||||
import java.io.IOException;
|
||||
|
||||
public interface IMountedFileBinary extends IMountedFile {
|
||||
public int read() throws IOException;
|
||||
public void write(int i) throws IOException;
|
||||
public void close() throws IOException;
|
||||
public void flush() throws IOException;
|
||||
int read() throws IOException;
|
||||
void write( int i ) throws IOException;
|
||||
void close() throws IOException;
|
||||
void flush() throws IOException;
|
||||
}
|
||||
|
@ -9,8 +9,8 @@ package dan200.computercraft.core.filesystem;
|
||||
import java.io.IOException;
|
||||
|
||||
public interface IMountedFileNormal extends IMountedFile {
|
||||
public String readLine() throws IOException;
|
||||
public void write(String s, int off, int len, boolean newLine) throws IOException;
|
||||
public void close() throws IOException;
|
||||
public void flush() throws IOException;
|
||||
String readLine() throws IOException;
|
||||
void write( String s, int off, int len, boolean newLine ) throws IOException;
|
||||
void close() throws IOException;
|
||||
void flush() throws IOException;
|
||||
}
|
||||
|
@ -12,17 +12,17 @@ import java.io.OutputStream;
|
||||
|
||||
public interface ILuaMachine
|
||||
{
|
||||
public void addAPI( ILuaAPI api );
|
||||
void addAPI( ILuaAPI api );
|
||||
|
||||
public void loadBios( InputStream bios );
|
||||
public void handleEvent( String eventName, Object[] arguments );
|
||||
public void softAbort( String abortMessage );
|
||||
public void hardAbort( String abortMessage );
|
||||
void loadBios( InputStream bios );
|
||||
void handleEvent( String eventName, Object[] arguments );
|
||||
void softAbort( String abortMessage );
|
||||
void hardAbort( String abortMessage );
|
||||
|
||||
public boolean saveState( OutputStream output );
|
||||
public boolean restoreState( InputStream input );
|
||||
boolean saveState( OutputStream output );
|
||||
boolean restoreState( InputStream input );
|
||||
|
||||
public boolean isFinished();
|
||||
boolean isFinished();
|
||||
|
||||
public void unload();
|
||||
void unload();
|
||||
}
|
||||
|
@ -10,6 +10,6 @@ import net.minecraft.util.EnumFacing;
|
||||
|
||||
public interface IDirectionalTile
|
||||
{
|
||||
public EnumFacing getDirection();
|
||||
public void setDirection( EnumFacing dir );
|
||||
EnumFacing getDirection();
|
||||
void setDirection( EnumFacing dir );
|
||||
}
|
||||
|
@ -10,6 +10,6 @@ import dan200.computercraft.core.terminal.Terminal;
|
||||
|
||||
public interface ITerminal
|
||||
{
|
||||
public Terminal getTerminal();
|
||||
public boolean isColour();
|
||||
Terminal getTerminal();
|
||||
boolean isColour();
|
||||
}
|
||||
|
@ -8,5 +8,5 @@ package dan200.computercraft.shared.common;
|
||||
|
||||
public interface ITerminalTile
|
||||
{
|
||||
public ITerminal getTerminal();
|
||||
ITerminal getTerminal();
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ public enum ComputerState implements IStringSerializable
|
||||
|
||||
private String m_name;
|
||||
|
||||
private ComputerState( String name )
|
||||
ComputerState( String name )
|
||||
{
|
||||
m_name = name;
|
||||
}
|
||||
|
@ -12,9 +12,9 @@ import dan200.computercraft.shared.computer.core.IComputer;
|
||||
|
||||
public interface IComputerTile extends ITerminalTile
|
||||
{
|
||||
public void setComputerID( int id );
|
||||
public void setLabel( String label );
|
||||
public IComputer getComputer();
|
||||
public IComputer createComputer();
|
||||
public ComputerFamily getFamily();
|
||||
void setComputerID( int id );
|
||||
void setLabel( String label );
|
||||
IComputer getComputer();
|
||||
IComputer createComputer();
|
||||
ComputerFamily getFamily();
|
||||
}
|
||||
|
@ -10,16 +10,16 @@ import dan200.computercraft.shared.common.ITerminal;
|
||||
|
||||
public interface IComputer extends ITerminal
|
||||
{
|
||||
public int getInstanceID();
|
||||
public int getID();
|
||||
public String getLabel();
|
||||
int getInstanceID();
|
||||
int getID();
|
||||
String getLabel();
|
||||
|
||||
public boolean isOn();
|
||||
public boolean isCursorDisplayed();
|
||||
public void turnOn();
|
||||
public void shutdown();
|
||||
public void reboot();
|
||||
boolean isOn();
|
||||
boolean isCursorDisplayed();
|
||||
void turnOn();
|
||||
void shutdown();
|
||||
void reboot();
|
||||
|
||||
public void queueEvent( String event );
|
||||
public void queueEvent( String event, Object[] arguments );
|
||||
void queueEvent( String event );
|
||||
void queueEvent( String event, Object[] arguments );
|
||||
}
|
||||
|
@ -8,5 +8,5 @@ package dan200.computercraft.shared.computer.core;
|
||||
|
||||
public interface IComputerContainer
|
||||
{
|
||||
public IComputer getComputer();
|
||||
IComputer getComputer();
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface IComputerItem
|
||||
{
|
||||
public int getComputerID( ItemStack stack );
|
||||
public String getLabel( ItemStack stack );
|
||||
public ComputerFamily getFamily( ItemStack stack );
|
||||
int getComputerID( ItemStack stack );
|
||||
String getLabel( ItemStack stack );
|
||||
ComputerFamily getFamily( ItemStack stack );
|
||||
}
|
||||
|
@ -9,5 +9,5 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
|
||||
public interface INetworkedThing
|
||||
{
|
||||
public void handlePacket( ComputerCraftPacket packet, EntityPlayer sender );
|
||||
void handlePacket( ComputerCraftPacket packet, EntityPlayer sender );
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ public enum PeripheralType implements IStringSerializable
|
||||
|
||||
private String m_name;
|
||||
|
||||
private PeripheralType( String name )
|
||||
PeripheralType( String name )
|
||||
{
|
||||
m_name = name;
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ public enum BlockCableModemVariant implements IStringSerializable
|
||||
private String m_name;
|
||||
private EnumFacing m_facing;
|
||||
|
||||
private BlockCableModemVariant( String name, EnumFacing facing )
|
||||
BlockCableModemVariant( String name, EnumFacing facing )
|
||||
{
|
||||
m_name = name;
|
||||
m_facing = facing;
|
||||
|
@ -126,7 +126,7 @@ public enum BlockPeripheralVariant implements IStringSerializable
|
||||
private String m_name;
|
||||
private PeripheralType m_peripheralType;
|
||||
|
||||
private BlockPeripheralVariant( String name, PeripheralType peripheralType )
|
||||
BlockPeripheralVariant( String name, PeripheralType peripheralType )
|
||||
{
|
||||
m_name = name;
|
||||
m_peripheralType = peripheralType;
|
||||
|
@ -11,5 +11,5 @@ import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface IPeripheralItem
|
||||
{
|
||||
public PeripheralType getPeripheralType( ItemStack stack );
|
||||
PeripheralType getPeripheralType( ItemStack stack );
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ import net.minecraft.util.EnumFacing;
|
||||
|
||||
public interface IPeripheralTile extends IDirectionalTile
|
||||
{
|
||||
public PeripheralType getPeripheralType();
|
||||
public IPeripheral getPeripheral( EnumFacing side );
|
||||
public String getLabel();
|
||||
PeripheralType getPeripheralType();
|
||||
IPeripheral getPeripheral( EnumFacing side );
|
||||
String getLabel();
|
||||
}
|
||||
|
@ -11,8 +11,8 @@ import net.minecraft.world.World;
|
||||
|
||||
public interface INetwork
|
||||
{
|
||||
public void addReceiver( IReceiver receiver );
|
||||
public void removeReceiver( IReceiver receiver );
|
||||
public void transmit( int channel, int replyChannel, Object payload, World world, Vec3d pos, double range, boolean interdimensional, Object senderObject );
|
||||
public boolean isWireless();
|
||||
void addReceiver( IReceiver receiver );
|
||||
void removeReceiver( IReceiver receiver );
|
||||
void transmit( int channel, int replyChannel, Object payload, World world, Vec3d pos, double range, boolean interdimensional, Object senderObject );
|
||||
boolean isWireless();
|
||||
}
|
||||
|
@ -10,11 +10,11 @@ import net.minecraft.world.World;
|
||||
|
||||
public interface IReceiver
|
||||
{
|
||||
public int getChannel();
|
||||
public World getWorld();
|
||||
public Vec3d getWorldPosition();
|
||||
public boolean isInterdimensional();
|
||||
public double getReceiveRange();
|
||||
public void receiveSameDimension( int replyChannel, Object payload, double distance, Object senderObject );
|
||||
public void receiveDifferentDimension( int replyChannel, Object payload, Object senderObject );
|
||||
int getChannel();
|
||||
World getWorld();
|
||||
Vec3d getWorldPosition();
|
||||
boolean isInterdimensional();
|
||||
double getReceiveRange();
|
||||
void receiveSameDimension( int replyChannel, Object payload, double distance, Object senderObject );
|
||||
void receiveDifferentDimension( int replyChannel, Object payload, Object senderObject );
|
||||
}
|
||||
|
@ -986,9 +986,9 @@ public class TileCable extends TileModemBase
|
||||
|
||||
// Generic network search stuff
|
||||
|
||||
private static interface ICableVisitor
|
||||
private interface ICableVisitor
|
||||
{
|
||||
public void visit( TileCable modem, int distance );
|
||||
void visit( TileCable modem, int distance );
|
||||
}
|
||||
|
||||
private static class SearchLoc
|
||||
|
@ -15,15 +15,15 @@ import java.util.List;
|
||||
|
||||
public interface ICCTurtleProxy
|
||||
{
|
||||
public void preInit();
|
||||
public void init();
|
||||
void preInit();
|
||||
void init();
|
||||
|
||||
public void registerTurtleUpgrade( ITurtleUpgrade upgrade );
|
||||
public ITurtleUpgrade getTurtleUpgrade( String id );
|
||||
public ITurtleUpgrade getTurtleUpgrade( int legacyId );
|
||||
public ITurtleUpgrade getTurtleUpgrade( ItemStack item );
|
||||
public void addAllUpgradedTurtles( List<ItemStack> list );
|
||||
void registerTurtleUpgrade( ITurtleUpgrade upgrade );
|
||||
ITurtleUpgrade getTurtleUpgrade( String id );
|
||||
ITurtleUpgrade getTurtleUpgrade( int legacyId );
|
||||
ITurtleUpgrade getTurtleUpgrade( ItemStack item );
|
||||
void addAllUpgradedTurtles( List<ItemStack> list );
|
||||
|
||||
public void setEntityDropConsumer( Entity entity, IEntityDropConsumer consumer );
|
||||
public void clearEntityDropConsumer( Entity entity );
|
||||
void setEntityDropConsumer( Entity entity, IEntityDropConsumer consumer );
|
||||
void clearEntityDropConsumer( Entity entity );
|
||||
}
|
||||
|
@ -23,25 +23,25 @@ import java.io.File;
|
||||
|
||||
public interface IComputerCraftProxy
|
||||
{
|
||||
public void preInit();
|
||||
public void init();
|
||||
public boolean isClient();
|
||||
void preInit();
|
||||
void init();
|
||||
boolean isClient();
|
||||
|
||||
public boolean getGlobalCursorBlink();
|
||||
public long getRenderFrame();
|
||||
public void deleteDisplayLists( int list, int range );
|
||||
public Object getFixedWidthFontRenderer();
|
||||
boolean getGlobalCursorBlink();
|
||||
long getRenderFrame();
|
||||
void deleteDisplayLists( int list, int range );
|
||||
Object getFixedWidthFontRenderer();
|
||||
|
||||
public String getRecordInfo( ItemStack item );
|
||||
public void playRecord( SoundEvent record, String recordInfo, World world, BlockPos pos );
|
||||
String getRecordInfo( ItemStack item );
|
||||
void playRecord( SoundEvent record, String recordInfo, World world, BlockPos pos );
|
||||
|
||||
public Object getDiskDriveGUI( InventoryPlayer inventory, TileDiskDrive drive );
|
||||
public Object getComputerGUI( TileComputer computer );
|
||||
public Object getPrinterGUI( InventoryPlayer inventory, TilePrinter printer );
|
||||
public Object getTurtleGUI( InventoryPlayer inventory, TileTurtle turtle );
|
||||
public abstract Object getPrintoutGUI( EntityPlayer player, EnumHand hand );
|
||||
public abstract Object getPocketComputerGUI( EntityPlayer player, EnumHand hand );
|
||||
Object getDiskDriveGUI( InventoryPlayer inventory, TileDiskDrive drive );
|
||||
Object getComputerGUI( TileComputer computer );
|
||||
Object getPrinterGUI( InventoryPlayer inventory, TilePrinter printer );
|
||||
Object getTurtleGUI( InventoryPlayer inventory, TileTurtle turtle );
|
||||
Object getPrintoutGUI( EntityPlayer player, EnumHand hand );
|
||||
Object getPocketComputerGUI( EntityPlayer player, EnumHand hand );
|
||||
|
||||
public File getWorldDir( World world );
|
||||
public void handlePacket( ComputerCraftPacket packet, EntityPlayer player );
|
||||
File getWorldDir( World world );
|
||||
void handlePacket( ComputerCraftPacket packet, EntityPlayer player );
|
||||
}
|
||||
|
@ -17,12 +17,12 @@ import net.minecraft.util.math.Vec3d;
|
||||
|
||||
public interface ITurtleTile extends IComputerTile, IDirectionalTile
|
||||
{
|
||||
public Colour getColour();
|
||||
public ResourceLocation getOverlay();
|
||||
public ITurtleUpgrade getUpgrade( TurtleSide side );
|
||||
public ITurtleAccess getAccess();
|
||||
Colour getColour();
|
||||
ResourceLocation getOverlay();
|
||||
ITurtleUpgrade getUpgrade( TurtleSide side );
|
||||
ITurtleAccess getAccess();
|
||||
|
||||
public Vec3d getRenderOffset( float f );
|
||||
public float getRenderYaw( float f );
|
||||
public float getToolRenderAngle( TurtleSide side, float f );
|
||||
Vec3d getRenderOffset( float f );
|
||||
float getRenderYaw( float f );
|
||||
float getToolRenderAngle( TurtleSide side, float f );
|
||||
}
|
||||
|
@ -15,8 +15,8 @@ import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public interface ITurtleItem extends IComputerItem
|
||||
{
|
||||
public ITurtleUpgrade getUpgrade( ItemStack stack, TurtleSide side );
|
||||
public int getFuelLevel( ItemStack stack );
|
||||
public Colour getColour( ItemStack stack );
|
||||
public ResourceLocation getOverlay( ItemStack stack );
|
||||
ITurtleUpgrade getUpgrade( ItemStack stack, TurtleSide side );
|
||||
int getFuelLevel( ItemStack stack );
|
||||
Colour getColour( ItemStack stack );
|
||||
ResourceLocation getOverlay( ItemStack stack );
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public enum Colour
|
||||
private int m_hex;
|
||||
private float[] m_rgb;
|
||||
|
||||
private Colour( int hex )
|
||||
Colour( int hex )
|
||||
{
|
||||
m_hex = hex;
|
||||
m_rgb = new float[] {
|
||||
|
@ -10,5 +10,5 @@ import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface IEntityDropConsumer
|
||||
{
|
||||
public void consumeDrop( Entity dropper, ItemStack drop );
|
||||
void consumeDrop( Entity dropper, ItemStack drop );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user