Class DataMapHooks

java.lang.Object
net.neoforged.neoforge.common.DataMapHooks

public class DataMapHooks extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
    Used in a gametest
    static final Map<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.Block>
    The inverse map of the oxidizables data map, used in vanilla when scraping oxidization off of a block
    private static final Map<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.Block>
     
    static final Map<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.Block>
    The inverse map of the waxables data map, used in vanilla when scraping wax off of a block
    private static final Map<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.Block>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable net.minecraft.world.level.block.Block
    getBlockUnwaxed(net.minecraft.world.level.block.Block block)
     
    static @Nullable net.minecraft.world.level.block.Block
    getBlockWaxed(net.minecraft.world.level.block.Block block)
     
    static @Nullable net.minecraft.world.level.block.Block
    getNextOxidizedStage(net.minecraft.world.level.block.Block block)
     
    static @Nullable net.minecraft.world.level.block.Block
    getPreviousOxidizedStage(net.minecraft.world.level.block.Block block)
     
    (package private) static void
     
    static net.minecraft.world.level.block.entity.FuelValues
    populateFuelValues(net.minecraft.core.RegistryAccess lookupProvider, net.minecraft.world.flag.FeatureFlagSet features)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • didHaveToFallbackToVanillaMaps

      @Internal public static boolean didHaveToFallbackToVanillaMaps
      Used in a gametest
    • INVERSE_OXIDIZABLES_DATAMAP_INTERNAL

      private static final Map<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.Block> INVERSE_OXIDIZABLES_DATAMAP_INTERNAL
    • INVERSE_WAXABLES_DATAMAP_INTERNAL

      private static final Map<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.Block> INVERSE_WAXABLES_DATAMAP_INTERNAL
    • INVERSE_OXIDIZABLES_DATAMAP

      public static final Map<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.Block> INVERSE_OXIDIZABLES_DATAMAP
      The inverse map of the oxidizables data map, used in vanilla when scraping oxidization off of a block
    • INVERSE_WAXABLES_DATAMAP

      public static final Map<net.minecraft.world.level.block.Block,net.minecraft.world.level.block.Block> INVERSE_WAXABLES_DATAMAP
      The inverse map of the waxables data map, used in vanilla when scraping wax off of a block
  • Constructor Details

    • DataMapHooks

      public DataMapHooks()
  • Method Details

    • getNextOxidizedStage

      @Nullable public static @Nullable net.minecraft.world.level.block.Block getNextOxidizedStage(net.minecraft.world.level.block.Block block)
    • getPreviousOxidizedStage

      @Nullable public static @Nullable net.minecraft.world.level.block.Block getPreviousOxidizedStage(net.minecraft.world.level.block.Block block)
    • getBlockWaxed

      @Nullable public static @Nullable net.minecraft.world.level.block.Block getBlockWaxed(net.minecraft.world.level.block.Block block)
    • getBlockUnwaxed

      @Nullable public static @Nullable net.minecraft.world.level.block.Block getBlockUnwaxed(net.minecraft.world.level.block.Block block)
    • populateFuelValues

      @Internal public static net.minecraft.world.level.block.entity.FuelValues populateFuelValues(net.minecraft.core.RegistryAccess lookupProvider, net.minecraft.world.flag.FeatureFlagSet features)
    • onDataMapsUpdated

      static void onDataMapsUpdated(DataMapsUpdatedEvent event)