Class PetrolparkRegistries

java.lang.Object
com.petrolpark.PetrolparkRegistries

public class PetrolparkRegistries extends Object
  • Field Details

    • DECAY_PRODUCT_TYPES

      public static final net.minecraft.core.Registry<DecayProductType> DECAY_PRODUCT_TYPES
    • TEAM_PROVIDER_TYPES

      public static final net.minecraft.core.Registry<ITeam.ProviderType> TEAM_PROVIDER_TYPES
    • BADGES

      public static final net.minecraft.core.Registry<Badge> BADGES
    • TRADE_LISTING_REFERENCE_TYPES

      public static final net.minecraft.core.Registry<ITradeListingReference.Type> TRADE_LISTING_REFERENCE_TYPES
    • SCRATCH_CLASSES

      public static final net.minecraft.core.Registry<IScratchClass<?,?>> SCRATCH_CLASSES
    • SCRATCH_BLOCK_TYPES

      public static final net.minecraft.core.Registry<IScratchBlock.Type<?>> SCRATCH_BLOCK_TYPES
    • SCRATCH_EXPRESSION_TYPES

      public static final net.minecraft.core.Registry<IScratchExpression.Type<?>> SCRATCH_EXPRESSION_TYPES
    • LOOT_ITEM_STACK_NUMBER_PROVIDER_TYPES

      public static final net.minecraft.core.Registry<LootItemStackNumberProviderType> LOOT_ITEM_STACK_NUMBER_PROVIDER_TYPES
    • LOOT_ENTITY_NUMBER_PROVIDER_TYPES

      public static final net.minecraft.core.Registry<LootEntityNumberProviderType> LOOT_ENTITY_NUMBER_PROVIDER_TYPES
    • LOOT_TEAM_NUMBER_PROVIDER_TYPES

      public static final net.minecraft.core.Registry<LootTeamNumberProviderType> LOOT_TEAM_NUMBER_PROVIDER_TYPES
    • INGREDIENT_RANDOMIZER_TYPES

      public static final net.minecraft.core.Registry<IngredientRandomizerType> INGREDIENT_RANDOMIZER_TYPES
    • ADVANCED_ITEM_INGREDIENT_TYPES

      public static final net.minecraft.core.Registry<IAdvancedIngredientType<? super net.minecraft.world.item.ItemStack>> ADVANCED_ITEM_INGREDIENT_TYPES
    • ADVANCED_FLUID_INGREDIENT_TYPES

      public static final net.minecraft.core.Registry<IAdvancedIngredientType<? super net.neoforged.neoforge.fluids.FluidStack>> ADVANCED_FLUID_INGREDIENT_TYPES
    • REWARD_GENERATOR_TYPES

      public static final net.minecraft.core.Registry<RewardGeneratorType> REWARD_GENERATOR_TYPES
    • REWARD_TYPES

      public static final net.minecraft.core.Registry<RewardType> REWARD_TYPES
    • ENTITY_REWARD_TYPES

      public static final net.minecraft.core.Registry<EntityRewardType> ENTITY_REWARD_TYPES
    • TEAM_REWARD_TYPES

      public static final net.minecraft.core.Registry<TeamRewardType> TEAM_REWARD_TYPES
    • BOGGLE_PATTERN_GENERATOR_TYPES

      public static final net.minecraft.core.Registry<BogglePatternGeneratorType> BOGGLE_PATTERN_GENERATOR_TYPES
  • Constructor Details

    • PetrolparkRegistries

      public PetrolparkRegistries()
  • Method Details

    • registryAccess

      public static final net.minecraft.core.RegistryAccess registryAccess()
      Only call during gameplay, not during world loading or before.
    • getRegistry

      public static <OBJECT> Optional<net.minecraft.core.Registry<OBJECT>> getRegistry(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<OBJECT>> key)
      Fetch the (Datapack) Registry with the given key. Only call during gameplay, not during world loading or before.
      Type Parameters:
      OBJECT - Type of objects in the Registry
      Parameters:
      key -
    • getHolder

      public static <OBJECT> Optional<net.minecraft.core.Holder.Reference<OBJECT>> getHolder(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<OBJECT>> registryKey, OBJECT object)
      Fetch the Holder of the given object in the Registry with the given key. Only call during gameplay, not during world loading or before.
      Type Parameters:
      OBJECT - Type of objects in the Registry
      See Also:
    • getHolder

      public static <OBJECT> Optional<net.minecraft.core.Holder.Reference<OBJECT>> getHolder(net.minecraft.core.Registry<OBJECT> registry, OBJECT object)
    • getHolder

      public static <OBJECT> Optional<net.minecraft.core.Holder.Reference<OBJECT>> getHolder(net.minecraft.core.HolderLookup.Provider provider, net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<OBJECT>> registryKey, OBJECT object)
    • holderGetOrThrow

      public static <OBJECT> Function<OBJECT,Optional<net.minecraft.core.Holder.Reference<OBJECT>>> holderGetOrThrow(net.minecraft.core.HolderLookup.Provider provider, net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<OBJECT>> registryKey)
    • simple

      @Internal public static <T> net.minecraft.core.Registry<T> simple(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> key)
    • register

      @Internal public static <T> net.minecraft.core.Registry<T> register(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> key, boolean hasIntrusiveHolders)
    • onNewRegistries

      public static final void onNewRegistries(net.neoforged.neoforge.registries.NewRegistryEvent event)
    • init

      @Internal public static void init()