Class FabricXplatImpl

java.lang.Object
at.petrak.paucal.fabric.xplat.FabricXplatImpl
All Implemented Interfaces:
at.petrak.paucal.xplat.IXplatAbstractions

public class FabricXplatImpl extends Object implements at.petrak.paucal.xplat.IXplatAbstractions
  • Field Summary

    Fields inherited from interface at.petrak.paucal.xplat.IXplatAbstractions

    INSTANCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.resources.ResourceLocation
    getID(net.minecraft.world.item.Item item)
     
    net.minecraft.resources.ResourceLocation
    getID(net.minecraft.world.level.block.Block block)
     
    @Nullable net.minecraft.sounds.SoundEvent
    getSoundByID(net.minecraft.resources.ResourceLocation id)
     
    at.petrak.paucal.xplat.Platform
     
    void
    saveRecipeAdvancement(net.minecraft.data.DataGenerator generator, net.minecraft.data.HashCache cache, com.google.gson.JsonObject json, Path path)
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface at.petrak.paucal.xplat.IXplatAbstractions

    init
  • Constructor Details

    • FabricXplatImpl

      public FabricXplatImpl()
  • Method Details

    • platform

      public at.petrak.paucal.xplat.Platform platform()
      Specified by:
      platform in interface at.petrak.paucal.xplat.IXplatAbstractions
    • getSoundByID

      @Nullable public @Nullable net.minecraft.sounds.SoundEvent getSoundByID(net.minecraft.resources.ResourceLocation id)
      Specified by:
      getSoundByID in interface at.petrak.paucal.xplat.IXplatAbstractions
    • getID

      public net.minecraft.resources.ResourceLocation getID(net.minecraft.world.level.block.Block block)
      Specified by:
      getID in interface at.petrak.paucal.xplat.IXplatAbstractions
    • getID

      public net.minecraft.resources.ResourceLocation getID(net.minecraft.world.item.Item item)
      Specified by:
      getID in interface at.petrak.paucal.xplat.IXplatAbstractions
    • saveRecipeAdvancement

      public void saveRecipeAdvancement(net.minecraft.data.DataGenerator generator, net.minecraft.data.HashCache cache, com.google.gson.JsonObject json, Path path)
      Specified by:
      saveRecipeAdvancement in interface at.petrak.paucal.xplat.IXplatAbstractions