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 TypeMethodDescriptionnet.minecraft.core.component.DataComponentMapfindEnvironmentComponents(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) Looks up the current environment parameters for a world positionstatic EnvironmentLookupGets the singleton instance of this interface
-
Method Details
-
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 lookuppos- The position to lookup at- Returns:
- Returns an environment component map whose keys are defined by
EnvironmentComponentTypes
-