Class FabricPlatformHelper
java.lang.Object
com.mrbysco.emiprofessions.platform.FabricPlatformHelper
- All Implemented Interfaces:
IPlatformHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationgetEntityKey(net.minecraft.world.entity.EntityType<?> entityType) Get the registry name of the entitytypenet.minecraft.resources.ResourceLocationgetProfessionKey(net.minecraft.world.entity.npc.VillagerProfession villagerProfession) Get the registry name of the profession
-
Constructor Details
-
FabricPlatformHelper
public FabricPlatformHelper()
-
-
Method Details
-
getEntityKey
public net.minecraft.resources.ResourceLocation getEntityKey(net.minecraft.world.entity.EntityType<?> entityType) Description copied from interface:IPlatformHelperGet the registry name of the entitytype- Specified by:
getEntityKeyin interfaceIPlatformHelper- 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:IPlatformHelperGet the registry name of the profession- Specified by:
getProfessionKeyin interfaceIPlatformHelper- Parameters:
villagerProfession- The villager profession- Returns:
- The registry name
-