Java:
package com.lsn.primalboat.entity.render;
import com.lsn.primalboat.entity.item.EntityPrimalBoat;
import com.lsn.primalboat.entity.model.ModelPrimalBoat;
import com.lsn.primalboat.util.Reference;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.MathHelper;
import net.minecraftforge.fml.client.registry.IRenderFactory;
public class RenderPrimalBoat extends Render<EntityPrimalBoat>
{
public RenderPrimalBoat(RenderManager manager)
{
super(manager);
}
public static final Factory FACTORY = new Factory();
public static final ResourceLocation[] TEXTURES = new ResourceLocation[]{new ResourceLocation(Reference.MOD_ID + ":textures/items/primalboat.png")};
protected ModelBase ModelPrimalBoat = new ModelPrimalBoat();
public void setupRotation(EntityPrimalBoat primalboat, float float1, float float2)
{
GlStateManager.rotate(180.0F - float1, 0.0F, 1.0F, 0.0F);
float f = (float)primalboat.getTimeSinceHit() - float2;
float f1 = (float)primalboat.getDamageTaken() - float2;
if (f1 < 0.0F)
f1 = 0.0F;
if (f > 0.0F)
GlStateManager.rotate(MathHelper.sin(f) * f * f1 / 10.0F * (float)primalboat.getForwardDirection(), 1.0F, 0.0F, 0.0F);
GlStateManager.scale(-1.0F, -1.0F, 1.0F);
}
public void setupTranslation(double x, double y, double z)
{
GlStateManager.translate((float)x, (float)y + 0.375F, (float)z);
}
@Override
protected ResourceLocation getEntityTexture(EntityPrimalBoat entity)
{
return new ResourceLocation(Reference.MOD_ID + ":textures/items/primalboat.png");
}
public static class Factory implements IRenderFactory<EntityPrimalBoat>
{
@Override
public Render<? super EntityPrimalBoat> createRenderFor(RenderManager manager)
{
return new RenderPrimalBoat(manager);
}
}
}
- Краш-лог
-
[12:13:57] [main/INFO] [GradleStart]: Extra: []
[12:13:57] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/АСАШАЙ/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[12:13:57] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[12:13:57] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[12:13:57] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[12:13:57] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[12:13:57] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2768 for Minecraft 1.12.2 loading
[12:13:57] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_231, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_231
[12:13:57] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
[12:13:57] [main/ERROR] [FML]: Full: C:\Users\АСАШАЙ\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
[12:13:57] [main/ERROR] [FML]: Trimmed: c:/users/асашай/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
[12:13:58] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[12:13:58] [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs.
2020-03-14 12:14:00,204 main WARN Disabling terminal, you're running in an unsupported environment.
[12:14:00] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
[12:14:00] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
[12:14:00] [main/INFO] [FML]: Searching C:\Users\АСАШАЙ\Desktop\customMM\Primal_boat\run\.\mods for mods
[12:14:00] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[12:14:00] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[12:14:00] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[12:14:00] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:14:00] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:14:00] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[12:14:00] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:14:00] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:14:00] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[12:14:04] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[12:14:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[12:14:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:14:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[12:14:04] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:14:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:14:04] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[12:14:06] [main/INFO] [minecraft/Minecraft]: Setting user: Player309
[12:14:13] [main/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer:
[12:14:13] [main/INFO] [minecraft/Minecraft]: LWJGL Version: 2.9.4
[12:14:14] [main/INFO] [FML]: -- System Details --
Details:
Minecraft Version: 1.12.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.8.0_231, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 101690672 bytes (96 MB) / 386400256 bytes (368 MB) up to 954728448 bytes (910 MB)
JVM Flags: 0 total;
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML:
Loaded coremods (and transformers):
GL info: ' Vendor: 'NVIDIA Corporation' Version: '3.3.0' Renderer: 'GeForce GT 220/PCIe/SSE2'
[12:14:15] [main/INFO] [FML]: MinecraftForge v14.23.5.2768 Initialized
[12:14:15] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[12:14:15] [main/INFO] [FML]: Replaced 1036 ore ingredients
[12:14:16] [main/INFO] [FML]: Searching C:\Users\АСАШАЙ\Desktop\customMM\Primal_boat\run\.\mods for mods
[12:14:18] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[12:14:18] [Thread-3/INFO] [FML]: Using alternative sync timing : 200 frames of Display.update took 1215008373 nanos
[12:14:18] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, primalboat] at CLIENT
[12:14:18] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, primalboat] at SERVER
[12:14:19] [main/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Primal Boat
[12:14:20] [main/INFO] [FML]: Processing ObjectHolder annotations
[12:14:20] [main/INFO] [FML]: Found 1168 ObjectHolder annotations
[12:14:20] [main/INFO] [FML]: Identifying ItemStackHolder annotations
[12:14:20] [main/INFO] [FML]: Found 0 ItemStackHolder annotations
[12:14:20] [main/INFO] [FML]: Configured a dormant chunk cache size of 0
[12:14:20] [main/INFO] [FML]: Applying holder lookups
[12:14:20] [main/INFO] [FML]: Holder lookups applied
[12:14:20] [main/INFO] [FML]: Applying holder lookups
[12:14:20] [main/INFO] [FML]: Holder lookups applied
[12:14:20] [main/INFO] [FML]: Applying holder lookups
[12:14:20] [main/INFO] [FML]: Holder lookups applied
[12:14:20] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[12:14:20] [main/INFO] [FML]: Applying holder lookups
[12:14:20] [main/INFO] [FML]: Holder lookups applied
[12:14:20] [main/INFO] [FML]: Injecting itemstacks
[12:14:20] [main/INFO] [FML]: Itemstack injection complete
[12:14:21] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: UP_TO_DATE Target: null
[12:14:27] [Sound Library Loader/INFO] [minecraft/SoundManager]: Starting up SoundSystem...
[12:14:27] [Thread-5/INFO] [minecraft/SoundManager]: Initializing LWJGL OpenAL
[12:14:27] [Thread-5/INFO] [minecraft/SoundManager]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[12:14:29] [Thread-5/INFO] [minecraft/SoundManager]: OpenAL initialized.
[12:14:29] [Sound Library Loader/INFO] [minecraft/SoundManager]: Sound engine started
[12:14:37] [main/INFO] [FML]: Max texture size: 8192
[12:14:38] [main/WARN] [minecraft/TextureMap]: Texture primalboat:textures/items/primal_boat.png with size 20x20 will have visual artifacts at mip level 4, it can only support level 2. Please report to the mod author that the texture should be some multiple of 16x16.
[12:14:38] [main/INFO] [minecraft/TextureMap]: Created: 512x512 textures-atlas
[12:14:42] [main/INFO] [FML]: Applying holder lookups
[12:14:42] [main/INFO] [FML]: Holder lookups applied
[12:14:42] [main/INFO] [FML]: Injecting itemstacks
[12:14:42] [main/INFO] [FML]: Itemstack injection complete
[12:14:42] [main/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[12:14:42] [main/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer:
[12:14:42] [main/INFO] [mojang/NarratorWindows]: Narrator library for x64 successfully loaded
[12:14:45] [Realms Notification Availability checker #1/INFO] [mojang/RealmsClient]: Could not authorize you against Realms server: Invalid session id
[12:14:49] [Server thread/INFO] [minecraft/IntegratedServer]: Starting integrated minecraft server version 1.12.2
[12:14:49] [Server thread/INFO] [minecraft/IntegratedServer]: Generating keypair
[12:14:49] [Server thread/INFO] [FML]: Injecting existing registry data into this server instance
Краш-лог:
[12:13:57] [main/INFO] [GradleStart]: Extra: []
[12:13:57] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/АСАШАЙ/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[12:13:57] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[12:13:57] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[12:13:57] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[12:13:57] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[12:13:57] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2768 for Minecraft 1.12.2 loading
[12:13:57] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_231, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_231
[12:13:57] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
[12:13:57] [main/ERROR] [FML]: Full: C:\Users\АСАШАЙ\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
[12:13:57] [main/ERROR] [FML]: Trimmed: c:/users/асашай/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
[12:13:58] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[12:13:58] [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs.
2020-03-14 12:14:00,204 main WARN Disabling terminal, you're running in an unsupported environment.
[12:14:00] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
[12:14:00] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
[12:14:00] [main/INFO] [FML]: Searching C:\Users\АСАШАЙ\Desktop\customMM\Primal_boat\run\.\mods for mods
[12:14:00] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[12:14:00] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[12:14:00] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[12:14:00] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:14:00] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:14:00] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[12:14:00] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:14:00] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:14:00] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[12:14:04] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[12:14:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[12:14:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:14:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[12:14:04] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:14:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:14:04] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[12:14:06] [main/INFO] [minecraft/Minecraft]: Setting user: Player309
[12:14:13] [main/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer:
[12:14:13] [main/INFO] [minecraft/Minecraft]: LWJGL Version: 2.9.4
[12:14:14] [main/INFO] [FML]: -- System Details --
Details:
Minecraft Version: 1.12.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.8.0_231, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 101690672 bytes (96 MB) / 386400256 bytes (368 MB) up to 954728448 bytes (910 MB)
JVM Flags: 0 total;
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML:
Loaded coremods (and transformers):
GL info: ' Vendor: 'NVIDIA Corporation' Version: '3.3.0' Renderer: 'GeForce GT 220/PCIe/SSE2'
[12:14:15] [main/INFO] [FML]: MinecraftForge v14.23.5.2768 Initialized
[12:14:15] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[12:14:15] [main/INFO] [FML]: Replaced 1036 ore ingredients
[12:14:16] [main/INFO] [FML]: Searching C:\Users\АСАШАЙ\Desktop\customMM\Primal_boat\run\.\mods for mods
[12:14:18] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[12:14:18] [Thread-3/INFO] [FML]: Using alternative sync timing : 200 frames of Display.update took 1215008373 nanos
[12:14:18] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, primalboat] at CLIENT
[12:14:18] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, primalboat] at SERVER
[12:14:19] [main/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Primal Boat
[12:14:20] [main/INFO] [FML]: Processing ObjectHolder annotations
[12:14:20] [main/INFO] [FML]: Found 1168 ObjectHolder annotations
[12:14:20] [main/INFO] [FML]: Identifying ItemStackHolder annotations
[12:14:20] [main/INFO] [FML]: Found 0 ItemStackHolder annotations
[12:14:20] [main/INFO] [FML]: Configured a dormant chunk cache size of 0
[12:14:20] [main/INFO] [FML]: Applying holder lookups
[12:14:20] [main/INFO] [FML]: Holder lookups applied
[12:14:20] [main/INFO] [FML]: Applying holder lookups
[12:14:20] [main/INFO] [FML]: Holder lookups applied
[12:14:20] [main/INFO] [FML]: Applying holder lookups
[12:14:20] [main/INFO] [FML]: Holder lookups applied
[12:14:20] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[12:14:20] [main/INFO] [FML]: Applying holder lookups
[12:14:20] [main/INFO] [FML]: Holder lookups applied
[12:14:20] [main/INFO] [FML]: Injecting itemstacks
[12:14:20] [main/INFO] [FML]: Itemstack injection complete
[12:14:21] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: UP_TO_DATE Target: null
[12:14:27] [Sound Library Loader/INFO] [minecraft/SoundManager]: Starting up SoundSystem...
[12:14:27] [Thread-5/INFO] [minecraft/SoundManager]: Initializing LWJGL OpenAL
[12:14:27] [Thread-5/INFO] [minecraft/SoundManager]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[12:14:29] [Thread-5/INFO] [minecraft/SoundManager]: OpenAL initialized.
[12:14:29] [Sound Library Loader/INFO] [minecraft/SoundManager]: Sound engine started
[12:14:37] [main/INFO] [FML]: Max texture size: 8192
[12:14:38] [main/WARN] [minecraft/TextureMap]: Texture primalboat:textures/items/primal_boat.png with size 20x20 will have visual artifacts at mip level 4, it can only support level 2. Please report to the mod author that the texture should be some multiple of 16x16.
[12:14:38] [main/INFO] [minecraft/TextureMap]: Created: 512x512 textures-atlas
[12:14:42] [main/INFO] [FML]: Applying holder lookups
[12:14:42] [main/INFO] [FML]: Holder lookups applied
[12:14:42] [main/INFO] [FML]: Injecting itemstacks
[12:14:42] [main/INFO] [FML]: Itemstack injection complete
[12:14:42] [main/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[12:14:42] [main/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer:
[12:14:42] [main/INFO] [mojang/NarratorWindows]: Narrator library for x64 successfully loaded
[12:14:45] [Realms Notification Availability checker #1/INFO] [mojang/RealmsClient]: Could not authorize you against Realms server: Invalid session id
[12:14:49] [Server thread/INFO] [minecraft/IntegratedServer]: Starting integrated minecraft server version 1.12.2
[12:14:49] [Server thread/INFO] [minecraft/IntegratedServer]: Generating keypair
[12:14:49] [Server thread/INFO] [FML]: Injecting existing registry data into this server instance