public interface IPocketAccess
Modifier and Type | Method and Description |
---|---|
int |
getColour()
Get the colour of this pocket computer as a RGB number.
|
Entity |
getEntity()
Gets the entity holding this item.
|
int |
getLight()
Get the colour of this pocket computer's light as a RGB number.
|
NBTTagCompound |
getUpgradeNBTData()
Get the upgrade-specific NBT.
|
java.util.Map<ResourceLocation,IPeripheral> |
getUpgrades()
Get a list of all upgrades for the pocket computer.
|
void |
invalidatePeripheral()
Remove the current peripheral and create a new one.
|
void |
setColour(int colour)
Set the colour of the pocket computer to a RGB number.
|
void |
setLight(int colour)
Set the colour of the pocket computer's light to a RGB number.
|
void |
updateUpgradeNBTData()
Mark the upgrade-specific NBT as dirty.
|
Entity getEntity()
null
.int getColour()
0x000000
and
0xFFFFFF
or -1 if it has no colour.setColour(int)
void setColour(int colour)
colour
- The colour this pocket computer should be changed to. This should be a RGB colour between
0x000000
and 0xFFFFFF
or -1 to reset to the default colour.getColour()
int getLight()
0x000000
and 0xFFFFFF
or
-1 if it has no colour.setLight(int)
void setLight(int colour)
colour
- The colour this modem's light will be changed to. This should be a RGB colour between
0x000000
and 0xFFFFFF
or -1 to reset to the default colour.getLight()
NBTTagCompound getUpgradeNBTData()
updateUpgradeNBTData()
void updateUpgradeNBTData()
getUpgradeNBTData()
void invalidatePeripheral()
java.util.Map<ResourceLocation,IPeripheral> getUpgrades()