@ApiInternal public interface IInternalHooks
| Modifier and Type | Method and Description |
|---|---|
void |
defaultConstruct(AbstractEntityPlayer player,
PlayerCompendiumRecipe recipe,
TileEntity machine) |
void |
doDefaultEntityUpdate(IGameInstance game,
Entity entity,
java.util.List<ActiveEffect> effects,
java.util.List<AITask> aiTasks) |
void |
doDefaultLiquidBehavior(IWorld world,
int x,
int y,
TileLayer layer,
TileLiquid tile) |
boolean |
doDefaultShiftClicking(IGameInstance game,
int button,
GuiContainer gui,
ComponentSlot slot) |
boolean |
doDefaultSlotMovement(IGameInstance game,
int button,
float x,
float y,
GuiContainer gui,
ComponentSlot slot) |
boolean |
doInputFieldCharInput(IGameInstance game,
char[] characters,
ComponentInputField field) |
boolean |
doInputFieldKeyPress(IGameInstance game,
int button,
ComponentInputField field) |
void |
doInputFieldRender(IGameInstance game,
IAssetManager manager,
IRenderer g,
int x,
int y,
ComponentInputField field) |
void |
doTileStateInit(TileState thisState,
ResourceName name,
Tile tile,
java.util.Map<java.lang.String,java.lang.Comparable> properties,
com.google.common.collect.Table<java.lang.String,java.lang.Comparable,TileState> subStates) |
void |
doWorldObjectMovement(MovableWorldObject object) |
void |
dropHeldItem(AbstractEntityPlayer player,
ItemContainer container) |
FormattingCode |
getFormattingCode(java.lang.String s,
int index,
java.util.Map<java.lang.Character,FormattingCode> defaults) |
java.lang.String |
getKeyOrMouseName(int key) |
java.util.List<PlayerCompendiumRecipe> |
getRecipesToLearnFrom(Tile tile)
Returns a list of compendium recipes that can be unlocked by breaking the specified tile
|
java.util.logging.Logger |
logger() |
AbstractEntityItem |
makeItem(IWorld world,
ItemInstance inst,
double x,
double y,
double motionX,
double motionY) |
java.util.List<ComponentStatistic> |
makeItemStatComponents(IGameInstance game,
ItemStatistic.Stat stat,
java.util.Map<Item,Counter> statMap,
AbstractStatGui gui,
ComponentMenu menu,
ResourceName textureLocation) |
IStateHandler |
makeStateHandler(Tile tile) |
void |
onToolBroken(IWorld world,
AbstractEntityPlayer player,
ItemInstance instance) |
void |
packetDamage(IWorld world,
double x,
double y,
java.util.UUID entityId,
int damage) |
void |
packetDeath(IWorld world,
double x,
double y,
java.util.UUID entityId) |
void |
packetEntityData(Entity entity) |
void |
packetTileEntityData(TileEntity tile) |
boolean |
placeTile(int x,
int y,
TileLayer layer,
AbstractEntityPlayer player,
ItemInstance selected,
Tile tile,
boolean removeItem,
boolean simulate) |
boolean |
useCraftingTool(IToolStation craftingStation,
ConstructionTool tool,
boolean simulate)
Checks if the tile entity is a construction table, and if it has a tool
|
void doDefaultEntityUpdate(IGameInstance game, Entity entity, java.util.List<ActiveEffect> effects, java.util.List<AITask> aiTasks)
void doWorldObjectMovement(MovableWorldObject object)
boolean doDefaultSlotMovement(IGameInstance game, int button, float x, float y, GuiContainer gui, ComponentSlot slot)
boolean doDefaultShiftClicking(IGameInstance game, int button, GuiContainer gui, ComponentSlot slot)
boolean placeTile(int x,
int y,
TileLayer layer,
AbstractEntityPlayer player,
ItemInstance selected,
Tile tile,
boolean removeItem,
boolean simulate)
boolean useCraftingTool(IToolStation craftingStation, ConstructionTool tool, boolean simulate)
craftingStation - The construction table tile entitytool - What tool and how much usage is neededsimulate - Should we actually damage the tool, or just check if it is therejava.util.List<PlayerCompendiumRecipe> getRecipesToLearnFrom(Tile tile)
tile - The tile which needs to be broken to unlock the recipesvoid doDefaultLiquidBehavior(IWorld world, int x, int y, TileLayer layer, TileLiquid tile)
java.lang.String getKeyOrMouseName(int key)
boolean doInputFieldKeyPress(IGameInstance game, int button, ComponentInputField field)
boolean doInputFieldCharInput(IGameInstance game, char[] characters, ComponentInputField field)
void doInputFieldRender(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y, ComponentInputField field)
void doTileStateInit(TileState thisState, ResourceName name, Tile tile, java.util.Map<java.lang.String,java.lang.Comparable> properties, com.google.common.collect.Table<java.lang.String,java.lang.Comparable,TileState> subStates)
IStateHandler makeStateHandler(Tile tile)
FormattingCode getFormattingCode(java.lang.String s, int index, java.util.Map<java.lang.Character,FormattingCode> defaults)
AbstractEntityItem makeItem(IWorld world, ItemInstance inst, double x, double y, double motionX, double motionY)
java.util.List<ComponentStatistic> makeItemStatComponents(IGameInstance game, ItemStatistic.Stat stat, java.util.Map<Item,Counter> statMap, AbstractStatGui gui, ComponentMenu menu, ResourceName textureLocation)
java.util.logging.Logger logger()
void onToolBroken(IWorld world, AbstractEntityPlayer player, ItemInstance instance)
void dropHeldItem(AbstractEntityPlayer player, ItemContainer container)
void packetDamage(IWorld world, double x, double y, java.util.UUID entityId, int damage)
void packetDeath(IWorld world, double x, double y, java.util.UUID entityId)
void packetTileEntityData(TileEntity tile)
void packetEntityData(Entity entity)
void defaultConstruct(AbstractEntityPlayer player, PlayerCompendiumRecipe recipe, TileEntity machine)