See: Description
Interface | Description |
---|---|
ILaserTarget |
This interface should be defined by any Tile which wants to receive power from BuildCraft lasers.
|
ILaserTargetBlock |
This is a marker interface for laser targets.
|
IMjConnector |
Signifies that this should visibly connect to other Mj handling entities/tiles.
|
IMjEffectManager |
Various effects for showing power loss visibly, and for large amounts of power, causes some damage to nearby
entities.
|
IMjPassiveProvider |
Designates a machine that provides power passively- it does not attempt to manually output its power (like an
engine).
|
IMjReadable |
Indicates an MJ consumer that has readable information.
|
IMjReceiver |
Designates a machine that can receive power.
|
IMjRedstoneReceiver |
Designates that a receiver can receive redstone power (cheap, free, small amounts)
|
Class | Description |
---|---|
MjAPI | |
MjBattery |
Provides a basic implementation of a simple battery.
|
MjCapabilityHelper |
Provides a quick way to return all types of a single
IMjConnector for all the different capabilities. |
Enum | Description |
---|---|
MjAPI.NullaryEffectManager |
MJ is stored in the long type, as micro Mj - so you need a long storing a value of 1 million to have a single MJ. All power should be passed around in code as micro Mj (10 ^ -6 of an Mj), but shown to the player as full MJ - so divided by 1 million.
A single MJ as a constant is available in MjAPI.ONE_MINECRAFT_JOULE
, and a player
formatter MjAPI.formatMj(long)
MJ should be exposed from tile entities and entities via the forge capability system as one of the following types:
IMjConnector
for *anything* that can (potentially) connect to any other Mj type. All
other types extend this. You should expose this with the capability
MjAPI.CAP_CONNECTOR
IMjReadable
for something that has an internal battery. This is used for adding gate
triggers. This should be exposed with the capability MjAPI.CAP_READABLE
IMjReceiver
for something that receives power. This should be exposed with the
capability MjAPI.CAP_RECEIVER
IMjReceiver
then you must return it for both of the capability's
MjAPI.CAP_CONNECTOR
and MjAPI.CAP_RECEIVER
. A simple way to do
this is provided in MjCapabilityHelper
.