Interface IDegradable
- All Known Implementing Classes:
BlockEntityEnvironmentalAccumulator
public interface IDegradable
Objects that can execute
IDegradationEffect should implement this.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.world.entity.Entity>Get the list of entities within the area defined bygetRadius().doubleGet the numerical representation of the stage of degradation.net.minecraft.world.level.LevelGet the world in which the degradable instance is located.net.minecraft.core.BlockPosGet the center location of this degradable instance.intGet the radius of the area.
-
Method Details
-
getLocation
net.minecraft.core.BlockPos getLocation()Get the center location of this degradable instance.- Returns:
- The center coordinates.
-
getRadius
int getRadius()Get the radius of the area.- Returns:
- The radius.
-
getAreaEntities
List<net.minecraft.world.entity.Entity> getAreaEntities()Get the list of entities within the area defined bygetRadius().- Returns:
- The entities within the area.
-
getDegradation
double getDegradation()Get the numerical representation of the stage of degradation. 0 is no degradation, 1 is the maximum degradation.- Returns:
- The numerical degradation, a value from 0 to 1.
-
getDegradationWorld
net.minecraft.world.level.Level getDegradationWorld()Get the world in which the degradable instance is located.- Returns:
- The world.
-