aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces/internal/IGT_Mod.java
blob: dbf888ef96801bcb206d1aa3c86a74411fb62f3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package gregtech.api.interfaces.internal;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;

/**
 * Interface used by the Mods Main Class to reference to internals.
 * <p/>
 * Don't even think about including this File in your Mod.
 */
public interface IGT_Mod {

    /**
     * This means that Server specific Basefiles are definitely existing! Not if the World is actually server side or
     * not!
     */
    boolean isServerSide();

    /**
     * This means that Client specific Basefiles are definitely existing! Not if the World is actually client side or
     * not!
     */
    boolean isClientSide();

    /**
     * This means that Bukkit specific Basefiles are definitely existing! Not if the World is actually bukkit server or
     * not!
     */
    boolean isBukkitSide();

    /**
     * works only ClientSide otherwise returns null
     */
    EntityPlayer getThePlayer();

    // ---------- Internal Usage Only ----------

    /**
     * works only ClientSide otherwise returns 0
     *
     * @return the Index of the added Armor
     */
    int addArmor(String aArmorPrefix);

    /**
     * Plays the Sonictron Sound for the ItemStack on the Client Side
     */
    void doSonictronSound(ItemStack aStack, World aWorld, double aX, double aY, double aZ);
}