Interface Helpers.IInterfaceRetriever

Enclosing class:
Helpers

public static interface Helpers.IInterfaceRetriever
  • Method Summary

    Modifier and Type
    Method
    Description
    <C> Optional<C>
    getInterface(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, Class<C> clazz)
    Attempt to get a given interface instance.
  • Method Details

    • getInterface

      <C> Optional<C> getInterface(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, Class<C> clazz)
      Attempt to get a given interface instance.
      Type Parameters:
      C - The class type.
      Parameters:
      world - The world.
      pos - The position.
      clazz - The class to find.
      Returns:
      The optional instance.