Interface IDegradable

All Known Implementing Classes:
BlockEntityEnvironmentalAccumulator

public interface IDegradable
Objects that can execute IDegradationEffect should implement this.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    List<net.minecraft.world.entity.Entity>
    Get the list of entities within the area defined by getRadius().
    double
    Get the numerical representation of the stage of degradation.
    net.minecraft.world.level.Level
    Get the world in which the degradable instance is located.
    net.minecraft.core.BlockPos
    Get the center location of this degradable instance.
    int
    Get 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 by getRadius().
      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.