MCPotionEffectInstance
Questa classe è stata aggiunta da una mod con ID crafttweaker
. Perciò, è necessario avere questa mod installata per poter utilizzare questa funzione.
Importing the class
Potrebbe essere necessario importare il pacchetto, se si incontrano dei problemi (come castare un vettore), quindi meglio essere sicuri e aggiungere la direttiva di importazione.
crafttweaker.api.potion.MCPotionEffectInstance
Methods
addCurativeItem
myMCPotionEffectInstance.addCurativeItem(stack as crafttweaker.api.item.IItemStack);
combine
Restituisce un booleano
myMCPotionEffectInstance.combine(effect as crafttweaker.api.potion.MCPotionEffectInstance);
getCurativeItems
Returns List<crafttweaker.api.item.IItemStack>
myMCPotionEffectInstance.getCurativeItems();
isCurativeItem
Restituisce un booleano
myMCPotionEffectInstance.isCurativeItem(stack as crafttweaker.api.item.IItemStack);
setCurativeItems
myMCPotionEffectInstance.setCurativeItems(items as crafttweaker.api.item.IItemStack[]);
Properties
Name | Type | Ha Getter | Ha Setter |
---|
ambient | boolean | true | false |
amplifier | int | true | false |
duration | int | true | false |
effectName | String | true | false |
potion | crafttweaker.api.potion.MCPotionEffect | true | false |
showIcon | boolean | true | false |
showParticles | boolean | true | false |