Class BiomeDegradation
java.lang.Object
org.cyclops.evilcraft.core.degradation.effect.BiomeDegradation
- All Implemented Interfaces:
IDegradationEffect,OrganicSpread.IOrganicSpreadable
public class BiomeDegradation
extends Object
implements IDegradationEffect, OrganicSpread.IOrganicSpreadable
Makes biomes darker.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRun(IDegradable degradable) If this effect can occur.booleanisDone(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos location) Check if a certain location is already spread to.voidrunClientSide(IDegradable degradable) Run the effect client side.voidrunServerSide(IDegradable degradable) Run the effect server side.voidspreadTo(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos location) Spread to a given location.
-
Constructor Details
-
BiomeDegradation
-
-
Method Details
-
canRun
Description copied from interface:IDegradationEffectIf this effect can occur.- Specified by:
canRunin interfaceIDegradationEffect- Parameters:
degradable- The degradable instance where the effect should apply.- Returns:
- If it can occur.
-
runClientSide
Description copied from interface:IDegradationEffectRun the effect client side.- Specified by:
runClientSidein interfaceIDegradationEffect- Parameters:
degradable- The degradable instance where the effect should apply.
-
runServerSide
Description copied from interface:IDegradationEffectRun the effect server side.- Specified by:
runServerSidein interfaceIDegradationEffect- Parameters:
degradable- The degradable instance where the effect should apply.
-
isDone
public boolean isDone(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos location) Description copied from interface:OrganicSpread.IOrganicSpreadableCheck if a certain location is already spread to.- Specified by:
isDonein interfaceOrganicSpread.IOrganicSpreadable- Parameters:
world- The world.location- The location.- Returns:
- If it is spread to.
-
spreadTo
public void spreadTo(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos location) Description copied from interface:OrganicSpread.IOrganicSpreadableSpread to a given location.- Specified by:
spreadToin interfaceOrganicSpread.IOrganicSpreadable- Parameters:
world- The world.location- The location.
-