public class BiomeDegradation extends ConfigurableDegradationEffect implements OrganicSpread.IOrganicSpreadable
eConfig| Constructor and Description |
|---|
BiomeDegradation(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<DegradationEffectConfig> eConfig) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRun(IDegradable degradable)
If this effect can occur.
|
static BiomeDegradation |
getInstance()
Get the unique instance.
|
boolean |
isDone(net.minecraft.world.World world,
net.minecraft.util.BlockPos location)
Check if a certain location is already spread to.
|
void |
runClientSide(IDegradable degradable)
Run the effect client side.
|
void |
runServerSide(IDegradable degradable)
Run the effect server side.
|
void |
spreadTo(net.minecraft.world.World world,
net.minecraft.util.BlockPos location)
Spread to a given location.
|
getConfigpublic BiomeDegradation(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<DegradationEffectConfig> eConfig)
public static BiomeDegradation getInstance()
public boolean canRun(IDegradable degradable)
IDegradationEffectcanRun in interface IDegradationEffectdegradable - The degradable instance where the effect should apply.public void runClientSide(IDegradable degradable)
IDegradationEffectrunClientSide in interface IDegradationEffectdegradable - The degradable instance where the effect should apply.public void runServerSide(IDegradable degradable)
IDegradationEffectrunServerSide in interface IDegradationEffectdegradable - The degradable instance where the effect should apply.public boolean isDone(net.minecraft.world.World world,
net.minecraft.util.BlockPos location)
OrganicSpread.IOrganicSpreadableisDone in interface OrganicSpread.IOrganicSpreadableworld - The world.location - The location.public void spreadTo(net.minecraft.world.World world,
net.minecraft.util.BlockPos location)
OrganicSpread.IOrganicSpreadablespreadTo in interface OrganicSpread.IOrganicSpreadableworld - The world.location - The location.