Class NeoForgePlatformHelper

java.lang.Object
com.mrbysco.emiprofessions.platform.NeoForgePlatformHelper
All Implemented Interfaces:
IPlatformHelper

public class NeoForgePlatformHelper extends Object implements IPlatformHelper
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.resources.ResourceLocation
    getEntityKey(net.minecraft.world.entity.EntityType<?> entityType)
    Get the registry name of the entitytype
    net.minecraft.resources.ResourceLocation
    getProfessionKey(net.minecraft.world.entity.npc.VillagerProfession villagerProfession)
    Get the registry name of the profession

    Methods inherited from class java.lang.Object

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

    • NeoForgePlatformHelper

      public NeoForgePlatformHelper()
  • Method Details

    • getEntityKey

      public net.minecraft.resources.ResourceLocation getEntityKey(net.minecraft.world.entity.EntityType<?> entityType)
      Description copied from interface: IPlatformHelper
      Get the registry name of the entitytype
      Specified by:
      getEntityKey in interface IPlatformHelper
      Parameters:
      entityType - The entity type
      Returns:
      The registry name
    • getProfessionKey

      public net.minecraft.resources.ResourceLocation getProfessionKey(net.minecraft.world.entity.npc.VillagerProfession villagerProfession)
      Description copied from interface: IPlatformHelper
      Get the registry name of the profession
      Specified by:
      getProfessionKey in interface IPlatformHelper
      Parameters:
      villagerProfession - The villager profession
      Returns:
      The registry name