public interface IPneumaticHelmetRegistry
PneumaticRegistry.IPneumaticCraftInterface#getHelmetRegistry()| Modifier and Type | Method and Description |
|---|---|
void |
addHackable(net.minecraft.block.Block block,
java.util.function.Supplier<? extends IHackableBlock> iHackable)
Register a "foreign" block with your hackable.
|
void |
addHackable(java.lang.Class<? extends net.minecraft.entity.Entity> entityClazz,
java.util.function.Supplier<? extends IHackableEntity> iHackable)
Register a "foreign" entity with your hackable.
|
void |
addHackable(net.minecraft.tags.ITag.INamedTag<net.minecraft.block.Block> blockTag,
java.util.function.Supplier<? extends IHackableBlock> iHackable) |
java.util.List<IHackableEntity> |
getCurrentEntityHacks(net.minecraft.entity.Entity entity)
Get a list of all current successful hacks on a given entity.
|
IKeybindingButton |
makeKeybindingButton(int yPos,
net.minecraft.client.settings.KeyBinding keyBinding)
Create a new keybinding button for an
IOptionPage armor GUI screen. |
ICheckboxWidget |
makeKeybindingCheckBox(net.minecraft.util.ResourceLocation upgradeId,
int xPos,
int yPos,
int color,
java.util.function.Consumer<ICheckboxWidget> onPressed)
Create or retrieve the toggle checkbox for the given upgrade.
|
void |
registerBlockTrackEntry(IBlockTrackEntry entry)
Register a block tracker for the Pneumatic Helmet
|
void |
registerEntityTrackEntry(java.util.function.Supplier<? extends IEntityTrackEntry> entry)
Register an entity tracker for the Pneumatic Helmet.
|
<T extends IArmorUpgradeHandler<?>> |
registerRenderHandler(T handler,
IArmorUpgradeClientHandler<T> clientHandler)
Registers the client handler for a Pneumatic Armor upgrade.
|
void registerEntityTrackEntry(java.util.function.Supplier<? extends IEntityTrackEntry> entry)
entry - the entity trackervoid registerBlockTrackEntry(IBlockTrackEntry entry)
entry - the block trackervoid addHackable(java.lang.Class<? extends net.minecraft.entity.Entity> entityClazz,
java.util.function.Supplier<? extends IHackableEntity> iHackable)
IHackableEntityentityClazz - entity class; subclasses of this entity will also be affectediHackable - the hack to registervoid addHackable(@Nonnull
net.minecraft.block.Block block,
@Nonnull
java.util.function.Supplier<? extends IHackableBlock> iHackable)
IHackableBlockblock - the block class; subclasses of this block will also be affectediHackable - the hack to registervoid addHackable(@Nonnull
net.minecraft.tags.ITag.INamedTag<net.minecraft.block.Block> blockTag,
@Nonnull
java.util.function.Supplier<? extends IHackableBlock> iHackable)
java.util.List<IHackableEntity> getCurrentEntityHacks(net.minecraft.entity.Entity entity)
entity - the entity to check<T extends IArmorUpgradeHandler<?>> void registerRenderHandler(T handler, IArmorUpgradeClientHandler<T> clientHandler)
FMLClientSetupEvent
handler, using ParallelDispatchEvent.enqueueWork(Runnable). This
also registers any keybindings referenced by the render handler
(see IArmorUpgradeClientHandler.getInitialKeyBinding() and IArmorUpgradeClientHandler.getSubKeybinds().clientHandler - the handler to registerIKeybindingButton makeKeybindingButton(int yPos, net.minecraft.client.settings.KeyBinding keyBinding)
IOptionPage armor GUI screen. This is intended to be called from
IOptionPage.populateGui(IGuiScreen) to set up a button which can be used to change a particular key
binding.yPos - y position of the buttonkeyBinding - the keybinding modified by the buttonICheckboxWidget makeKeybindingCheckBox(net.minecraft.util.ResourceLocation upgradeId, int xPos, int yPos, int color, java.util.function.Consumer<ICheckboxWidget> onPressed)
This is intended to be called from IOptionPage.populateGui(IGuiScreen) when creating the GUI for
an upgrade handler.
upgradeId - the upgrade IDxPos - X position of the widgetyPos - Y position of the widgetcolor - widget's text color in ARGB formatonPressed - called when the checkbox is toggled