public class BiomeDegradation extends java.lang.Object implements IDegradationEffect, OrganicSpread.IOrganicSpreadable
| Constructor and Description |
|---|
BiomeDegradation(DegradationEffectConfig eConfig) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRun(IDegradable degradable)
If this effect can occur.
|
boolean |
isDone(net.minecraft.world.World world,
net.minecraft.util.math.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.math.BlockPos location)
Spread to a given location.
|
public BiomeDegradation(DegradationEffectConfig eConfig)
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.math.BlockPos location)
OrganicSpread.IOrganicSpreadableisDone in interface OrganicSpread.IOrganicSpreadableworld - The world.location - The location.public void spreadTo(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos location)
OrganicSpread.IOrganicSpreadablespreadTo in interface OrganicSpread.IOrganicSpreadableworld - The world.location - The location.