@ApiInternal public interface IInternalHooks
| Modifier and Type | Method and Description |
|---|---|
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) |
void |
smithingConstruct(AbstractEntityPlayer player,
TileEntity tile,
SmithingRecipe recipe,
java.util.List<ItemInstance> actualInputs) |
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)
java.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 smithingConstruct(AbstractEntityPlayer player, TileEntity tile, SmithingRecipe recipe, java.util.List<ItemInstance> actualInputs)