Class BedrockCustomBlockResources

java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<com.viaversion.viafabricplus.bedrock.block.BedrockCustomBlockResources.Prepared>
com.viaversion.viafabricplus.bedrock.block.BedrockCustomBlockResources
All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener

public final class BedrockCustomBlockResources extends net.minecraft.server.packs.resources.SimplePreparableReloadListener<com.viaversion.viafabricplus.bedrock.block.BedrockCustomBlockResources.Prepared>
Physical block properties from the accepted, versioned server pack on either connection route.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier, net.minecraft.server.packs.resources.PreparableReloadListener.SharedState, net.minecraft.server.packs.resources.PreparableReloadListener.StateKey<T>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    apply(com.viaversion.viafabricplus.bedrock.block.BedrockCustomBlockResources.Prepared prepared, net.minecraft.server.packs.resources.ResourceManager resources, net.minecraft.util.profiling.ProfilerFiller profiler)
     
    static void
     
    static Map<Integer, net.raphimc.viabedrock.api.model.CustomBlockProperties>
     
    static Map<Integer, net.raphimc.viabedrock.api.model.CustomBlockCulling.Definition>
     
    protected com.viaversion.viafabricplus.bedrock.block.BedrockCustomBlockResources.Prepared
    prepare(net.minecraft.server.packs.resources.ResourceManager resources, net.minecraft.util.profiling.ProfilerFiller profiler)
     

    Methods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener

    reload

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    getName, prepareSharedState
  • Constructor Details

    • BedrockCustomBlockResources

      public BedrockCustomBlockResources()
  • Method Details

    • current

      public static Map<Integer, net.raphimc.viabedrock.api.model.CustomBlockProperties> current()
    • clear

      public static void clear()
    • prepare

      protected com.viaversion.viafabricplus.bedrock.block.BedrockCustomBlockResources.Prepared prepare(net.minecraft.server.packs.resources.ResourceManager resources, net.minecraft.util.profiling.ProfilerFiller profiler)
      Specified by:
      prepare in class net.minecraft.server.packs.resources.SimplePreparableReloadListener<com.viaversion.viafabricplus.bedrock.block.BedrockCustomBlockResources.Prepared>
    • currentCulling

      public static Map<Integer, net.raphimc.viabedrock.api.model.CustomBlockCulling.Definition> currentCulling()
    • apply

      protected void apply(com.viaversion.viafabricplus.bedrock.block.BedrockCustomBlockResources.Prepared prepared, net.minecraft.server.packs.resources.ResourceManager resources, net.minecraft.util.profiling.ProfilerFiller profiler)
      Specified by:
      apply in class net.minecraft.server.packs.resources.SimplePreparableReloadListener<com.viaversion.viafabricplus.bedrock.block.BedrockCustomBlockResources.Prepared>