Class NeoforgeRegistryHelper

java.lang.Object
de.cech12.bucketlib.platform.NeoforgeRegistryHelper
All Implemented Interfaces:
IRegistryHelper

public class NeoforgeRegistryHelper extends Object implements IRegistryHelper
The registry service implementation for NeoForge.
  • Constructor Details

    • NeoforgeRegistryHelper

      public NeoforgeRegistryHelper()
  • Method Details

    • getRegisteredBuckets

      public List<UniversalBucketItem> getRegisteredBuckets()
      Specified by:
      getRegisteredBuckets in interface IRegistryHelper
    • getEntityType

      public net.minecraft.world.entity.EntityType<?> getEntityType(net.minecraft.resources.ResourceLocation location)
      Specified by:
      getEntityType in interface IRegistryHelper
    • getEntityTypeLocation

      public net.minecraft.resources.ResourceLocation getEntityTypeLocation(net.minecraft.world.entity.EntityType<?> entityType)
      Specified by:
      getEntityTypeLocation in interface IRegistryHelper
    • getBlock

      public net.minecraft.world.level.block.Block getBlock(net.minecraft.resources.ResourceLocation location)
      Specified by:
      getBlock in interface IRegistryHelper
    • getBlockLocation

      public net.minecraft.resources.ResourceLocation getBlockLocation(net.minecraft.world.level.block.Block block)
      Specified by:
      getBlockLocation in interface IRegistryHelper
    • getAllItems

      public Iterable<net.minecraft.world.item.Item> getAllItems()
      Specified by:
      getAllItems in interface IRegistryHelper
    • getAllFluids

      public Iterable<net.minecraft.world.level.material.Fluid> getAllFluids()
      Specified by:
      getAllFluids in interface IRegistryHelper
    • getFluid

      public net.minecraft.world.level.material.Fluid getFluid(net.minecraft.resources.ResourceLocation location)
      Specified by:
      getFluid in interface IRegistryHelper
    • getFluidLocation

      public net.minecraft.resources.ResourceLocation getFluidLocation(net.minecraft.world.level.material.Fluid fluid)
      Specified by:
      getFluidLocation in interface IRegistryHelper