HomeJavaModsImmortalCustom
ImmortalCustom
Features
Commands


Permissions

Note: All permissions can also be written ic.{PERMISSION} instead of ImmortalCustom.{PERMISSION}.

MetricsLite

This plugin uses MetricsLite to view statistics about the plugin's usage.
[​IMG]

Developer API

Here is how you listen to an event with ImmortalCustom's API:
Code (Text):
public class YourClass extends ICBlockBreakListener {

    public void onSilkTouch (ICBlockBreakEvent event) {
        // Called when a silktouch enchantment applies
    }
    public void onAutoSmelt (ICBlockBreakEvent event) {
        // Called when a item is autosmelted
    }
    public void onItemBreak (ICBlockBreakEvent event) {
        // Called when an item breaks
    }
    public void onBlockBreak (ICBlockBreakEvent event) {
        // Called when a block is broken
    }
    public void preBlockBreak (ICBlockBreakEvent event) {
        // Called before a block is broken
    }
    public void onBlockFortune (ICBlockBreakEvent event) {
        // Called when an item is multiplied by fortune
    }
    public void onBlockBrokenUpdate (ICBlockBreakEvent event) {
        // Called when the blocks broken by a pickaxe is updated
    }
    public boolean onDropDown (ICBlockBreakEvent event, ItemStack drop) {
        // Called when an item is going to drop on the floor
        return true; // or false to cancel the dropdown
    }
    public boolean onAutoPickup (ICBlockBreakEvent event, ItemStack drop) {
       // Called when an item is going to go in the player's inventory or backpack
       return true; // or false to cancel the autopickup
    }

}
The ICBlockBreakEvent class contains these additional methods to the BlockBreakEvent class:
Code (Text):
public boolean isTool ()
public boolean isMineBow ()
public boolean hasSilkTouched ()
public boolean hasSmelted ()
public boolean hasFortuned ()
public boolean isAutoPickup ()
public boolean isFull ()
public boolean hasDropDown ()
public boolean hasExp ()
public boolean hasItemBreak ()
public ArrayList<ItemStack> getDrops ()
These methods shouldn't be called externally, but you CAN trigger a custom event for listeners.
Note that the following methods will NOT run any ImmortalCustom code.
Code (Text):
public void preBlockBreak ()
public void onBlockBreak ()
public void onBlockBrokenUpdate ()
public void onSilkTouch ()
public void onAutoSmelt ()
public void onBlockFortune ()
public boolean onAutoPickup (ItemStack drop)
public boolean onDropDown (ItemStack drop)
public void onItemBreak ()
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

ImmortalCustom is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9. Downloaded 683 times (via Spigot). Download it and open it directly in the game.

Explore more