Interface IInternalHooks
-
Method Summary
Modifier and TypeMethodDescriptionvoiddoDefaultEntityUpdate(IGameInstance game, Entity entity, List<ActiveEffect> effects, List<AITask> aiTasks) voiddoDefaultLiquidBehavior(IWorld world, int x, int y, TileLayer layer, LiquidTile tile) booleandoDefaultShiftClicking(IGameInstance game, int button, ContainerGui gui, SlotComponent slot) booleandoDefaultSlotMovement(IGameInstance game, int button, float x, float y, ContainerGui gui, SlotComponent slot) booleandoInputFieldCharInput(IGameInstance game, char[] characters, InputFieldComponent field) booleandoInputFieldKeyPress(IGameInstance game, int button, InputFieldComponent field) voiddoInputFieldRender(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y, InputFieldComponent field) voiddoTileStateInit(TileState thisState, ResourceName name, Tile tile, Map<String, Comparable> properties, com.google.common.collect.Table<String, Comparable, TileState> subStates) voidvoiddropHeldItem(AbstractPlayerEntity player, ItemContainer container) getFormattingCode(String s, int index, Map<Character, FormattingCode> defaults) getKeyOrMouseName(int key) getRecipesToLearnFrom(Tile tile) Returns a list of compendium recipes that can be unlocked by breaking the specified tilelogger()makeItem(IWorld world, ItemInstance inst, double x, double y, double motionX, double motionY) makeItemStatComponents(IGameInstance game, ItemStatistic.Stat stat, Map<Item, Counter> statMap, AbstractStatGui gui, MenuComponent menu, ResourceName textureLocation) makeStateHandler(Tile tile) voidonToolBroken(IWorld world, AbstractPlayerEntity player, ItemInstance instance) voidpacketDamage(IWorld world, double x, double y, UUID entityId, int damage) voidpacketDeath(IWorld world, double x, double y, UUID entityId) voidpacketEntityData(Entity entity) voidbooleanplaceTile(int x, int y, TileLayer layer, AbstractPlayerEntity player, ItemInstance selected, Tile tile, boolean removeItem, boolean simulate)
-
Method Details
-
doDefaultEntityUpdate
void doDefaultEntityUpdate(IGameInstance game, Entity entity, List<ActiveEffect> effects, List<AITask> aiTasks) -
doWorldObjectMovement
-
doDefaultSlotMovement
boolean doDefaultSlotMovement(IGameInstance game, int button, float x, float y, ContainerGui gui, SlotComponent slot) -
doDefaultShiftClicking
boolean doDefaultShiftClicking(IGameInstance game, int button, ContainerGui gui, SlotComponent slot) -
placeTile
boolean placeTile(int x, int y, TileLayer layer, AbstractPlayerEntity player, ItemInstance selected, Tile tile, boolean removeItem, boolean simulate) -
getRecipesToLearnFrom
Returns a list of compendium recipes that can be unlocked by breaking the specified tile- Parameters:
tile- The tile which needs to be broken to unlock the recipes- Returns:
- The recipe list
-
doDefaultLiquidBehavior
-
getKeyOrMouseName
-
doInputFieldKeyPress
-
doInputFieldCharInput
-
doInputFieldRender
void doInputFieldRender(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y, InputFieldComponent field) -
doTileStateInit
void doTileStateInit(TileState thisState, ResourceName name, Tile tile, Map<String, Comparable> properties, com.google.common.collect.Table<String, Comparable, TileState> subStates) -
makeStateHandler
-
getFormattingCode
-
makeItem
AbstractItemEntity makeItem(IWorld world, ItemInstance inst, double x, double y, double motionX, double motionY) -
makeItemStatComponents
List<StatisticComponent> makeItemStatComponents(IGameInstance game, ItemStatistic.Stat stat, Map<Item, Counter> statMap, AbstractStatGui gui, MenuComponent menu, ResourceName textureLocation) -
logger
Logger logger() -
onToolBroken
-
dropHeldItem
-
packetDamage
-
packetDeath
-
packetTileEntityData
-
packetEntityData
-