public class BiomeDegradation extends ConfigurableDegradationEffect implements OrganicSpread.IOrganicSpreadable
eConfig| Modifier and Type | Method and Description |
|---|---|
boolean |
canRun(IDegradable degradable)
If this effect can occur.
|
static BiomeDegradation |
getInstance()
Get the unique instance.
|
static void |
initInstance(ExtendedConfig<DegradationEffectConfig> eConfig)
Initialise the configurable.
|
boolean |
isDone(net.minecraft.world.World world,
ILocation 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,
ILocation location)
Spread to a given location.
|
getConfigpublic static void initInstance(ExtendedConfig<DegradationEffectConfig> eConfig)
eConfig - The config.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,
ILocation location)
OrganicSpread.IOrganicSpreadableisDone in interface OrganicSpread.IOrganicSpreadableworld - The world.location - The location.public void spreadTo(net.minecraft.world.World world,
ILocation location)
OrganicSpread.IOrganicSpreadablespreadTo in interface OrganicSpread.IOrganicSpreadableworld - The world.location - The location.