Radiation
Link to radiation
Note: The double set of brackets ([...])
is not required here!
Radiation
Link to radiation-1
This method gets the radiation of an IIngredient
in rads/tick.
ZenScript Copymods.nuclearcraft.radiation.getRadiationLevel(itemInput);
Block Mutations
Link to block-mutations
This method adds a block mutation. The Block will not mutate when the radiation is below radiationThreshold
.
ZenScript Copymods.nuclearcraft.radiation.addBlockMutation(blockInput, blockOutput, double radiationThreshold);
Radiation Immunity
Link to radiation-immunity
This method gives the ability to control the immunity of players depending on the stage. defaultImmunity
is a boolean specifiying the players' immunity without the specified stages. stageNames
is an array of the names of all stages that can toggle the immunity of players.
ZenScript Copymods.nuclearcraft.radiation.setRadiationImmunityGameStages(boolean defaultImmunity, string[] stageNames);
Radiation Getters/Setters
Link to radiation-getterssetters
Adding Radiation
Link to adding-radiation
amount
is the amount of radiation added to the IEntityLivingBase
. useImmunity
controls whether the function occurs even the IEntityLivingBase
is immune.
ZenScript CopyIEntityLivingBase.addRadiation(double amount, @Optional boolean useImmunity);
Setting Radiation
Link to setting-radiation
amount
is the level of radiation that is applied to the IEntityLivingBase
. useImmunity
controls whether the function occurs even the IEntityLivingBase
is immune.
ZenScript CopyIEntityLivingBase.setRadiation(double amount, @Optional boolean useImmunity);
Getting Radiation
Link to getting-radiation
This method returns the level of radiation of the IEntityLivingBase
.
ZenScript CopyIEntityLivingBase.getRadiation();
Radaway Buffer Getters/Setters
Link to radaway-buffer-getterssetters
Adding Radaway Buffer
Link to adding-radaway-buffer
amount
is the amount of Radaway Buffer added to the IEntityLivingBase
. slowBuffer
decides if the Radaway Buffer added is a slow buffer.
ZenScript CopyIEntityLivingBase.addRadiationResistance(double amount, @Optional boolean slowBuffer);
Setting Radaway Buffer
Link to setting-radaway-buffer
amount
is the amount of Radaway Buffer that is applied to the IEntityLivingBase
. slowBuffer
decides if the Radaway Buffer added is a slow buffer.
ZenScript CopyIEntityLivingBase.setRadiationResistance(double amount, @Optional boolean slowBuffer);
Getting Radaway Buffer
Link to getting-radaway-buffer
This method returns the Radaway Buffer of the IEntityLivingBase
. slowBuffer
determines whether slow buffer is included in the returned value.
ZenScript CopyIEntityLivingBase.getRadiationResistance(@Optional boolean slowBuffer);
Poison Buffer Getters/Setters
Link to poison-buffer-getterssetters
Adding Poison Buffer
Link to adding-poison-buffer
amount
is the amount of Poison Buffer added to the IEntityLivingBase
.
ZenScript CopyIEntityLivingBase.addPoisonBuffer(double amount);
Setting Poison Buffer
Link to setting-poison-buffer
amount
is the amount of Poison Buffer that is applied to the IEntityLivingBase
.
ZenScript CopyIEntityLivingBase.setPoisonBuffer(double amount);
Getting Poison Buffer
Link to getting-poison-buffer
This method returns the Poison Buffer of the IEntityLivingBase
.
ZenScript CopyIEntityLivingBase.getPoisonBuffer();
Radiation Resistance Getters/Setters
Link to radiation-resistance-getterssetters
Adding Radiation Resistance
Link to adding-radiation-resistance
amount
is the amount of Radiation Resistance added to the IEntityLivingBase
.
ZenScript CopyIEntityLivingBase.addRadawayBuffer(double amount);
Setting Radiation Resistance
Link to setting-radiation-resistance
amount
is the amount of Radiation Resistance that is applied to the IEntityLivingBase
.
ZenScript CopyIEntityLivingBase.setRadawayBuffer(double amount);
Getting Radiation Resistance
Link to getting-radiation-resistance
This method returns the Radiation Resistance of the IEntityLivingBase
.
ZenScript CopyIEntityLivingBase.getRadawayBuffer();
Radiation Level Getters
Link to radiation-level-getters
Raw Radiation Level
Link to raw-radiation-level
This method returns the radiation of the IEntityLivingBase
in rads.
ZenScript CopyIEntityLivingBase.getRawRadiationLevel();
Radiation Level
Link to radiation-level
This method returns the change in radiation level of the IEntityLivingBase
in rads/tick.
ZenScript CopyIEntityLivingBase.getRadiationLevel();