public interface IMethodHandler
This is not supposed to be implemented.
| Modifier and Type | Method and Description |
|---|---|
java.util.UUID |
checkAndSetRarmorId(net.minecraft.item.ItemStack stack,
boolean createIfAbsent)
Checks if a given stack has a unique Rarmor ID assigned to it
|
boolean |
compareModules(ActiveRarmorModule module,
java.lang.Object o)
Internal method, compares two rarmor modules
|
IRarmorData |
getDataForChestplate(net.minecraft.entity.player.EntityPlayer player,
boolean createIfAbsent)
Gets the Rarmor Data for the chestplate a player is wearing
|
IRarmorData |
getDataForStack(net.minecraft.world.World world,
net.minecraft.item.ItemStack stack,
boolean createIfAbsent)
Gets the Rarmor Data for a given stack in the given world
|
net.minecraft.item.ItemStack |
getHasRarmorInSlot(net.minecraft.entity.Entity entity,
net.minecraft.inventory.EntityEquipmentSlot slot)
Checks if the given entity has a rarmor item in the given slot.
|
boolean |
mergeItemStack(net.minecraft.inventory.Container container,
net.minecraft.item.ItemStack stack,
int startIndexIncl,
int endIndexExcl,
boolean reverseDirection)
This is a helper to merge two stacks inside of transferStackInSlot, as the one in Container is protected
and not accessible inside of RarmorModuleContainer.
|
void |
openRarmor(net.minecraft.entity.player.EntityPlayer player,
int moduleId,
boolean alsoSetData,
boolean sendRarmorDataToClient)
Opens the Rarmor GUI for the Rarmor the given player is currently wearing in their chestplate slot.
|
void |
openRarmorFromClient(int moduleId,
boolean alsoSetData,
boolean sendRarmorDataToClient)
Opens the Rarmor GUI for the Rarmor Minecraft.getMinecraft().thePlayeris currently wearing in their chestplate slot.
|
net.minecraft.item.ItemStack getHasRarmorInSlot(net.minecraft.entity.Entity entity,
net.minecraft.inventory.EntityEquipmentSlot slot)
entity - The entityslot - The slotIRarmorData getDataForChestplate(net.minecraft.entity.player.EntityPlayer player, boolean createIfAbsent)
player - The playercreateIfAbsent - If new data should be created if there is none availableIRarmorData getDataForStack(net.minecraft.world.World world, net.minecraft.item.ItemStack stack, boolean createIfAbsent)
world - The worldstack - The ItemStackcreateIfAbsent - If new data should be created if there is none availableboolean compareModules(ActiveRarmorModule module, java.lang.Object o)
module - One moduleo - The object to compare to the modulejava.util.UUID checkAndSetRarmorId(net.minecraft.item.ItemStack stack,
boolean createIfAbsent)
stack - The stackcreateIfAbsent - If the id should be created if there is none availablevoid openRarmor(net.minecraft.entity.player.EntityPlayer player,
int moduleId,
boolean alsoSetData,
boolean sendRarmorDataToClient)
player - The playermoduleId - The place in the list of modules whos GUI to openalsoSetData - If the module ID given should be assigned as the currently open onesendRarmorDataToClient - If the data the Rarmor has should be sent to the client
(possibly confirmation packet is enabled, so there might be a delay)void openRarmorFromClient(int moduleId,
boolean alsoSetData,
boolean sendRarmorDataToClient)
moduleId - The place in the list of modules whos GUI to openalsoSetData - If the module ID given should be assigned as the currently open onesendRarmorDataToClient - If the data the Rarmor has should be sent to the client
(possibly confirmation packet is enabled, so there might be a delay)boolean mergeItemStack(net.minecraft.inventory.Container container,
net.minecraft.item.ItemStack stack,
int startIndexIncl,
int endIndexExcl,
boolean reverseDirection)
This only works if the container that is currently open is the Rarmor.
container - The container this is happening instack - The itemstack to merge into the slotsstartIndexIncl - The index this should start at, includedendIndexExcl - The index this should end at, excludedreverseDirection - If this should happen in the opposite direction