public interface IApiHandler
| Modifier and Type | Method and Description |
|---|---|
java.util.logging.Logger |
createLogger(java.lang.String name) |
void |
doDefaultEntityUpdate(Entity entity)
Updates an
Entity's MovableWorldObject.x and MovableWorldObject.y values
depending on its MovableWorldObject.motionX and MovableWorldObject.motionY, increases
its Entity.ticksExisted value and so on
Not supposed to be used by mods |
boolean |
doDefaultSlotMovement(IGameInstance game,
int button,
float x,
float y,
ComponentSlot slot)
Does everything necessary for moving instances of
ItemInstance around between
slots of a ItemContainer using the ComponentSlot
provided
Not supposed to be used by mods |
void |
doWorldObjectMovement(MovableWorldObject object) |
int |
getColorByLight(int light,
TileLayer layer) |
int[] |
interpolateLight(IWorld world,
int x,
int y) |
int[] |
interpolateWorldColor(int[] interpolatedLight,
TileLayer layer) |
boolean |
isToolEffective(AbstractEntityPlayer player,
ItemInstance instance,
Tile tile,
TileLayer layer,
int x,
int y) |
java.util.logging.Logger |
logger() |
INoiseGen |
makeSimplexNoise(java.util.Random random) |
boolean |
placeTile(int x,
int y,
TileLayer layer,
AbstractEntityPlayer player,
ItemInstance selected,
Tile tile) |
void |
readDataSet(DataSet set,
java.io.File file)
Reads the specified
DataSet from the specified File |
DataPart |
readPart(java.io.DataInput stream)
Reads a
DataPart from the specified DataInput and returns it |
void |
readSet(java.io.DataInput stream,
DataSet set)
Reads the specified
DataSet from the specified DataInput |
void |
writeDataSet(DataSet set,
java.io.File file)
Writes the specified
DataSet to the specified File |
void |
writePart(java.io.DataOutput stream,
DataPart part)
Writes the specified
DataPart to the specified DataOutput |
void |
writeSet(java.io.DataOutput stream,
DataSet set)
Writes the specified
DataSet to the specified DataOutput |
void writeDataSet(DataSet set, java.io.File file)
DataSet to the specified Fileset - The setfile - The filevoid readDataSet(DataSet set, java.io.File file)
DataSet from the specified Fileset - The setfile - The filevoid writeSet(java.io.DataOutput stream,
DataSet set)
throws java.lang.Exception
DataSet to the specified DataOutputstream - The output to write toset - The setjava.lang.Exception - If writing to the output fails in some wayvoid readSet(java.io.DataInput stream,
DataSet set)
throws java.lang.Exception
DataSet from the specified DataInputstream - The input to read fromset - The setjava.lang.Exception - If reading from the input fails in some wayvoid writePart(java.io.DataOutput stream,
DataPart part)
throws java.lang.Exception
DataPart to the specified DataOutputstream - The output to write topart - The partjava.lang.Exception - If writing to the output fails in some wayDataPart readPart(java.io.DataInput stream) throws java.lang.Exception
DataPart from the specified DataInput and returns itstream - The input to read fromDataPartjava.lang.Exception - If reading from the input fails in some wayvoid doDefaultEntityUpdate(Entity entity)
Entity's MovableWorldObject.x and MovableWorldObject.y values
depending on its MovableWorldObject.motionX and MovableWorldObject.motionY, increases
its Entity.ticksExisted value and so on
entity - The entityvoid doWorldObjectMovement(MovableWorldObject object)
boolean doDefaultSlotMovement(IGameInstance game, int button, float x, float y, ComponentSlot slot)
ItemInstance around between
slots of a ItemContainer using the ComponentSlot
provided
game - The current game instancebutton - The button pressedx - The x coordinate of the mousey - The y coordiante of the mouseslot - The slotint[] interpolateLight(IWorld world, int x, int y)
int[] interpolateWorldColor(int[] interpolatedLight,
TileLayer layer)
int getColorByLight(int light,
TileLayer layer)
INoiseGen makeSimplexNoise(java.util.Random random)
boolean isToolEffective(AbstractEntityPlayer player, ItemInstance instance, Tile tile, TileLayer layer, int x, int y)
boolean placeTile(int x,
int y,
TileLayer layer,
AbstractEntityPlayer player,
ItemInstance selected,
Tile tile)
java.util.logging.Logger createLogger(java.lang.String name)
java.util.logging.Logger logger()