Package com.pixelmonmod.pixelmon
Class CommonProxy
java.lang.Object
com.pixelmonmod.pixelmon.CommonProxy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedInputStream
getStreamForResourceLocation
(net.minecraft.resources.ResourceLocation resourceLocation) Creates a new input stream at the specified file path.static void
init
(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event) static void
onConfigTaskCollect
(net.neoforged.neoforge.network.event.RegisterConfigurationTasksEvent event) static void
Registers Pixelmon player interactions.static boolean
resourceLocationExists
(net.minecraft.resources.ResourceLocation resourceLocation) Checks whether there is a resource at the given location.static void
spawnEntitySafely
(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.Level worldObj)
-
Constructor Details
-
CommonProxy
public CommonProxy()
-
-
Method Details
-
init
public static void init(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event) -
onConfigTaskCollect
public static void onConfigTaskCollect(net.neoforged.neoforge.network.event.RegisterConfigurationTasksEvent event) -
registerInteractions
public static void registerInteractions()Registers Pixelmon player interactions. -
resourceLocationExists
public static boolean resourceLocationExists(net.minecraft.resources.ResourceLocation resourceLocation) Checks whether there is a resource at the given location.- Parameters:
resourceLocation
- The file path to check.- Returns:
- Whether there is a resource at the given location.
-
getStreamForResourceLocation
public static BufferedInputStream getStreamForResourceLocation(net.minecraft.resources.ResourceLocation resourceLocation) Creates a new input stream at the specified file path.- Parameters:
resourceLocation
- The file path to get the input stream from.- Returns:
- A new input stream from the file path.
-
spawnEntitySafely
public static void spawnEntitySafely(net.minecraft.world.entity.Entity entity, net.minecraft.world.level.Level worldObj) -
loadDefaultMoveSkills
-