Interface EnvironmentLookup

All Known Implementing Classes:
EnvironmentLookupImpl

@NonExtendable public interface EnvironmentLookup
This interface provides facilities for looking up environment values from the EnvironmentDefinitions.

Should only be extended by Thermoo.

  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.core.component.DataComponentMap
    findEnvironmentComponents(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
    Looks up the current environment parameters for a world position
    Gets the singleton instance of this interface
  • Method Details

    • getInstance

      static EnvironmentLookup getInstance()
      Gets the singleton instance of this interface
    • findEnvironmentComponents

      net.minecraft.core.component.DataComponentMap findEnvironmentComponents(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
      Looks up the current environment parameters for a world position
      Parameters:
      world - The world/level to lookup
      pos - The position to lookup at
      Returns:
      Returns an environment component map whose keys are defined by EnvironmentComponentTypes