yessir
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,86 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="und" style="width:100%;height:100%;background-color:black;">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
|
|
||||||
<meta name="description" content="Eaglercraft 1.7.10 Offline Download">
|
|
||||||
<meta name="keywords" content="eaglercraft, minecraft, release, 1.7, combat, 1.7.10, mc">
|
|
||||||
<title>Eaglercraft 1.7.10</title>
|
|
||||||
<meta property="og:locale" content="en-US">
|
|
||||||
<meta property="og:type" content="website">
|
|
||||||
<meta property="og:title" content="Eaglercraft Alpha 1.7.10 Offline">
|
|
||||||
<meta property="og:description" content="this file is not a website, whoever uploaded it to this URL is a dumbass">
|
|
||||||
<script type="text/javascript">
|
|
||||||
"use strict";
|
|
||||||
var relayId = Math.floor(Math.random() * 3);
|
|
||||||
|
|
||||||
// %%%%%%%%% launch options %%%%%%%%%%%%
|
|
||||||
|
|
||||||
window.eaglercraftXOpts = {
|
|
||||||
container: "game_frame",
|
|
||||||
worldsDB: "worlds"
|
|
||||||
};
|
|
||||||
|
|
||||||
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
"use strict";
|
|
||||||
if(typeof window !== "undefined") window.eaglercraftXClientScriptElement = document.currentScript;
|
|
||||||
${classes_js}
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
"use strict";
|
|
||||||
(function(){
|
|
||||||
window.eaglercraftXOpts.assetsURI = ${assets_epk};
|
|
||||||
|
|
||||||
var launchInterval = -1;
|
|
||||||
var launchCounter = 1;
|
|
||||||
var launchCountdownNumberElement = null;
|
|
||||||
var launchCountdownProgressElement = null;
|
|
||||||
var launchSkipCountdown = false;
|
|
||||||
|
|
||||||
var launchTick = function() {
|
|
||||||
launchCountdownNumberElement.innerText = "" + Math.floor(6.0 - launchCounter * 0.06);
|
|
||||||
launchCountdownProgressElement.style.width = "" + launchCounter + "%";
|
|
||||||
if(++launchCounter > 100 || launchSkipCountdown) {
|
|
||||||
clearInterval(launchInterval);
|
|
||||||
setTimeout(function() {
|
|
||||||
document.body.removeChild(document.getElementById("launch_countdown_screen"));
|
|
||||||
document.body.style.backgroundColor = "black";
|
|
||||||
main();
|
|
||||||
}, 50);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
window.addEventListener("load", function() {
|
|
||||||
launchCountdownNumberElement = document.getElementById("launchCountdownNumber");
|
|
||||||
launchCountdownProgressElement = document.getElementById("launchCountdownProgress");
|
|
||||||
launchInterval = setInterval(launchTick, 50);
|
|
||||||
document.getElementById("skipCountdown").addEventListener("click", function() {
|
|
||||||
launchSkipCountdown = true;
|
|
||||||
});
|
|
||||||
document.getElementById("skipCountdown").focus();
|
|
||||||
/*
|
|
||||||
document.getElementById("bootMenu").addEventListener("click", function() {
|
|
||||||
launchSkipCountdown = true;
|
|
||||||
window.eaglercraftXOpts.showBootMenuOnLaunch = true;
|
|
||||||
});
|
|
||||||
*/
|
|
||||||
});
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
<link type="image/png" rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAR/SURBVEhLtZXZK3ZRFMYPcqXc+gv413DHxVuGIpIhkciQWaRccCNjSCkligwXSOZ5nmfv9zvn2e8+58V753sudmuvvdZ61l5r7XOc8H+GS/D19aUNkPz5+aktQH5/f//4+LBKZKuRkpUtQjCUYG5gD2T38vLy/PwsDfL9/f3Dw8PT05M0b29vnKLhCKCBT4L4gvBLBIei4//4+Hh1dUVEQutUuLu7E83FxQUGnKLBWKfQaA3S+AREVxaEOD8/Pzk50XpzcyMDcH19zdZG3N3d3dzc3Nvb01aX5pQUpQGGQJxcQpfNysoKhUIdHR1o1tbWbInYAgxIPDMzMy8vLzc3FxqOdMoRqwJK8G8ALUYIhHMiSEhIwI6CyIb0qQzC4eGhsXCc1tZWnZIEKzdQJQSXgKxfX18RCM3Z5eWlcfVAxKOjo+Pj49PTU88lTOk2NjbMsePc3t6SAfcgFdszOyMuAdeBg0CQi2lhYUHOeOLDCisN8FzcPFZXV3t7ezHY3t5GQ+6it+2xMASsKhEEWKsmRLRBBUpPvpJ/TpFKFBwKYAiITmicsbYhdHfJAltqhUCVsCQhwslmeXmZxiBQT9c0Ar9E2O3v72sYSE0N1yQArkKy0kBMXLqlZqIZHR3t6empqqqSDcBdhXEJSJ/bUc3q6uq+vj629GB9fR1WsLW1NTs7u7S0RN2locMjIyOEm5ubQ7+4uJienk4/+vv77Y1hwhLBEKhwWHitdVFfX9/Y2Gg2HuLi4owUAysrK8yCG97rh0+ApP5Q2ZycHFlPTExUVFRIBvn5+WhKSkp2dnaMKhptbW2426GgQ/rwuAQCZ1hwFayLiork9hMFBQV1dXVmE0BLS4vqw3QFB8kn4IAxoGPkYpxi4FeDmpqas7Mz4pClAgqGwD48rjY2NmacYqC0tJQ1KSlJWyE5OZkpUKkBAxZVIntAoZh04+Q48fHxPNGBgYHExMT29naj9cBodnZ2mo3jlJWVMeW2OGQck4B1amqqoaGhqamJjx2lGxwcpL0mUgR8fJhsWqJtSkoKU2SbHHUDpkhPBujd8xuQG6PJRM/Pz09PT7O1NNnZ2Tw3fgZkXVhYKCUlUhBATP+hCVyKZGky17RV0g04laayslJ6hlVeFHB4eFhKaogGd0LxtmTgE+hbhKDnPjMzgw8E3qGL2tpaBWpubjYqj2BoaEj6rq4uNATRZ0ZwCbiL6gXEzINk5vCBQJ9rMD4+rkA8QNK036uDg4Py8vLu7m680KjIBNR3zBDoWQM1g98snyB+VSoRW8C/UwR81/SvhgNj9JOTkwwVERUdRBEI0BAdLRVERkhLS8vIyEDQlrsTPTU1lVFhKxARvZgUlFLbegCf4BvIsbi4mIg4E5EogIHhiKCMtU0WUFiVy06j5fAJIDdSBDQw+PegDfBRcbOPwH4F9LuFWIIQdQNKwWqzIE0aoFUaBsw+SQuFw0uNtC9A+F4i3QNrbg3IDn+SAsHh+wYiEpeyBEMLv/cAO6KzAijxxB+Y4wisBhssJUhjEbPJf4Nw+B+JXqLW3bw+wQAAAABJRU5ErkJggg==">
|
|
||||||
</head>
|
|
||||||
<body style="margin:0px;width:100%;height:100%;overflow:hidden;background-color:#121212;" id="game_frame">
|
|
||||||
<div style="margin:0px;width:100%;height:100%;font-family:sans-serif;display:flex;align-items:center;user-select:none;" id="launch_countdown_screen">
|
|
||||||
<div style="margin:auto;text-align:center;color:#FFFFFF;">
|
|
||||||
<h1>This file is from <span style="color:#FF5555;">${date}</span></h1>
|
|
||||||
<h2>Game will launch in <span id="launchCountdownNumber">5</span>...</h2>
|
|
||||||
<div style="border:2px solid #FFFFFF;width:100%;height:15px;padding:1px;margin-bottom:20vh;">
|
|
||||||
<div id="launchCountdownProgress" style="background-color:#555555;width:0%;height:100%;"></div>
|
|
||||||
</div>
|
|
||||||
<button id="skipCountdown" autofocus style="padding:10px 20px;font-size:1rem;color:#FFFFFF;background-color:#333333;border:none;cursor:pointer;border-radius:5px;">Skip</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -1,54 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html style="width:100%;height:100%;background-color:black;">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
|
|
||||||
<meta name="description" content="EaglercraftX 1.8 test directory HTML page" />
|
|
||||||
<meta name="keywords" content="eaglercraft, eaglercraftx, minecraft, 1.8, 1.8.8" />
|
|
||||||
<title>EaglercraftX 1.8</title>
|
|
||||||
<meta property="og:locale" content="en-US" />
|
|
||||||
<meta property="og:type" content="website" />
|
|
||||||
<meta property="og:title" content="EaglercraftX 1.8" />
|
|
||||||
<meta property="og:description" content="test directory HTML page" />
|
|
||||||
<link type="image/png" rel="shortcut icon" href="favicon.png" />
|
|
||||||
<script type="text/javascript" src="classes.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
"use strict";
|
|
||||||
window.addEventListener("load", function() {
|
|
||||||
if(window.location.href.indexOf("file:") === 0) {
|
|
||||||
alert("HTTP please, do not open this file locally, run a local HTTP server and load it via HTTP");
|
|
||||||
}else {
|
|
||||||
var relayId = Math.floor(Math.random() * 3);
|
|
||||||
window.eaglercraftXOpts = {
|
|
||||||
demoMode: false,
|
|
||||||
container: "game_frame",
|
|
||||||
assetsURI: "assets.epk",
|
|
||||||
localesURI: "lang/",
|
|
||||||
worldsDB: "worlds",
|
|
||||||
logInvalidCerts: true,
|
|
||||||
crashOnUncaughtExceptions: true,
|
|
||||||
servers: [
|
|
||||||
{ addr: "ws://localhost:8081/", name: "Local test server" }
|
|
||||||
],
|
|
||||||
relays: [
|
|
||||||
{ addr: "wss://relay.deev.is/", comment: "lax1dude relay #1", primary: relayId === 0 },
|
|
||||||
{ addr: "wss://relay.lax1dude.net/", comment: "lax1dude relay #2", primary: relayId === 1 },
|
|
||||||
{ addr: "wss://relay.shhnowisnottheti.me/", comment: "ayunami relay #1", primary: relayId === 2 }
|
|
||||||
]
|
|
||||||
};
|
|
||||||
|
|
||||||
var q = window.location.search;
|
|
||||||
if((typeof q === "string") && q[0] === "?" && (typeof window.URLSearchParams !== "undefined")) {
|
|
||||||
q = new window.URLSearchParams(q);
|
|
||||||
var s = q.get("server");
|
|
||||||
if(s) window.eaglercraftXOpts.joinServer = s;
|
|
||||||
}
|
|
||||||
|
|
||||||
main();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body style="margin:0px;width:100%;height:100%;overflow:hidden;background-color:black;" id="game_frame">
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,36 @@
|
|||||||
|
---- Minecraft Crash Report ----
|
||||||
|
// You're mean.
|
||||||
|
|
||||||
|
Time: 16.06.2026 16:47
|
||||||
|
Description: Unexpected error
|
||||||
|
|
||||||
|
java.lang.NullPointerException: Cannot invoke "net.minecraft.client.entity.EntityClientPlayerMP.isUsingItem()" because "this.thePlayer" is null
|
||||||
|
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1573)
|
||||||
|
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:805)
|
||||||
|
at net.minecraft.client.Minecraft.run(Minecraft.java:745)
|
||||||
|
at net.lax1dude.eaglercraft.internal.lwjgl.LWJGLEntryPoint.main_(LWJGLEntryPoint.java:75)
|
||||||
|
at net.lax1dude.eaglercraft.internal.lwjgl.MainClass.main(MainClass.java:11)
|
||||||
|
|
||||||
|
|
||||||
|
A detailed walkthrough of the error, its code path and all known details is as follows:
|
||||||
|
---------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
-- System Details --
|
||||||
|
Details:
|
||||||
|
Minecraft Version: 1.7.10
|
||||||
|
Operating System: Linux (amd64) version 6.18.7-200.fc43.x86_64
|
||||||
|
Java Version: 17.0.18, Eclipse Adoptium
|
||||||
|
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Eclipse Adoptium
|
||||||
|
Memory: 1047997760 bytes (999 MB) / 1073741824 bytes (1024 MB) up to 1073741824 bytes (1024 MB)
|
||||||
|
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
|
||||||
|
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
|
||||||
|
Launched Version: 1.7.10
|
||||||
|
LWJGL: 2.9.4
|
||||||
|
OpenGL: ANGLE (Intel, Mesa Intel(R) Iris(R) Xe Graphics (ADL GT2), OpenGL 4.6 (Core Profile) Mesa 25.2.7) GL version OpenGL ES 3.0.0 (ANGLE 2.1.25161 git hash: fa40b7c586fd), Google Inc. (Intel)
|
||||||
|
Is Modded: vanilla
|
||||||
|
Type: Client (map_client.txt)
|
||||||
|
Resource Packs: [Xray Ultimate 1_8]
|
||||||
|
Current Language: Australian English (Australia)
|
||||||
|
Profiler Position: N/A (disabled)
|
||||||
|
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
|
||||||
|
Anisotropic Filtering: Off (1)
|
||||||
@@ -41,11 +41,16 @@ public class SkinPreviewRenderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void renderPreview(int x, int y, int mx, int my, SkinModel skinModel) {
|
public static void renderPreview(int x, int y, int mx, int my, SkinModel skinModel) {
|
||||||
renderPreview(x, y, mx, my, false, skinModel, null, null);
|
renderPreview(x, y, mx, my, false, skinModel, null, null, 50.0f, 80.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void renderPreview(int x, int y, int mx, int my, boolean capeMode, SkinModel skinModel,
|
public static void renderPreview(int x, int y, int mx, int my, boolean capeMode, SkinModel skinModel,
|
||||||
ResourceLocation skinTexture, ResourceLocation capeTexture) {
|
ResourceLocation skinTexture, ResourceLocation capeTexture) {
|
||||||
|
renderPreview(x, y, mx, my, capeMode, skinModel, skinTexture, capeTexture, 50.0f, 80.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void renderPreview(int x, int y, int mx, int my, boolean capeMode, SkinModel skinModel,
|
||||||
|
ResourceLocation skinTexture, ResourceLocation capeTexture, float scale, float yOffset) {
|
||||||
// Ensure models are initialized before use
|
// Ensure models are initialized before use
|
||||||
if (playerModelSteve == null || playerModelAlex == null || playerModelZombie == null) {
|
if (playerModelSteve == null || playerModelAlex == null || playerModelZombie == null) {
|
||||||
initialize();
|
initialize();
|
||||||
@@ -78,8 +83,8 @@ public class SkinPreviewRenderer {
|
|||||||
GlStateManager.color(1.0f, 1.0f, 1.0f, 1.0f);
|
GlStateManager.color(1.0f, 1.0f, 1.0f, 1.0f);
|
||||||
|
|
||||||
GlStateManager.pushMatrix();
|
GlStateManager.pushMatrix();
|
||||||
GlStateManager.translate(x, y - 80.0f, 100.0f);
|
GlStateManager.translate(x, y - yOffset, 100.0f);
|
||||||
GlStateManager.scale(50.0f, 50.0f, 50.0f);
|
GlStateManager.scale(scale, scale, scale);
|
||||||
GlStateManager.rotate(180.0f, 1.0f, 0.0f, 0.0f);
|
GlStateManager.rotate(180.0f, 1.0f, 0.0f, 0.0f);
|
||||||
GlStateManager.scale(1.0f, -1.0f, 1.0f);
|
GlStateManager.scale(1.0f, -1.0f, 1.0f);
|
||||||
|
|
||||||
|
|||||||
@@ -533,8 +533,7 @@ public class Minecraft implements IPlayerUsage {
|
|||||||
this.checkGLError("Post startup");
|
this.checkGLError("Post startup");
|
||||||
this.ingameGUI = new GuiIngame(this);
|
this.ingameGUI = new GuiIngame(this);
|
||||||
|
|
||||||
this.displayGuiScreen(new GuiAlert("NOTICE", "This is EymenWSMC. This project has no longer \n been developing. Because I leaked the 1.12 source for no reason and I left the community", new GuiScreenEditProfile(new GuiMainMenu())));
|
this.displayGuiScreen(new GuiMainMenu());
|
||||||
|
|
||||||
this.relayManager.loadDefaults();
|
this.relayManager.loadDefaults();
|
||||||
this.field_152354_ay = null;
|
this.field_152354_ay = null;
|
||||||
this.loadingScreen = new LoadingScreenRenderer(this);
|
this.loadingScreen = new LoadingScreenRenderer(this);
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ import java.util.ArrayList;
|
|||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import net.lax1dude.eaglercraft.opengl.GlStateManager;
|
||||||
import net.minecraft.client.gui.GuiButton;
|
import net.minecraft.client.gui.GuiButton;
|
||||||
import net.minecraft.client.gui.GuiTextField;
|
import net.minecraft.client.gui.GuiTextField;
|
||||||
import net.minecraft.client.gui.achievement.GuiAchievements;
|
import net.minecraft.client.gui.achievement.GuiAchievements;
|
||||||
@@ -584,6 +586,7 @@ public class GuiContainerCreative extends InventoryEffectRenderer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void func_146976_a(float p_146976_1_, int p_146976_2_, int p_146976_3_) {
|
protected void func_146976_a(float p_146976_1_, int p_146976_2_, int p_146976_3_) {
|
||||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
RenderHelper.enableGUIStandardItemLighting();
|
RenderHelper.enableGUIStandardItemLighting();
|
||||||
@@ -593,12 +596,14 @@ public class GuiContainerCreative extends InventoryEffectRenderer {
|
|||||||
int var7;
|
int var7;
|
||||||
|
|
||||||
for (var7 = 0; var7 < var6; ++var7) {
|
for (var7 = 0; var7 < var6; ++var7) {
|
||||||
|
GlStateManager.enableDepth();
|
||||||
CreativeTabs var8 = var5[var7];
|
CreativeTabs var8 = var5[var7];
|
||||||
this.mc.getTextureManager().bindTexture(field_147061_u);
|
this.mc.getTextureManager().bindTexture(field_147061_u);
|
||||||
|
|
||||||
if (var8.getTabIndex() != field_147058_w) {
|
if (var8.getTabIndex() != field_147058_w) {
|
||||||
this.func_147051_a(var8);
|
this.func_147051_a(var8);
|
||||||
}
|
}
|
||||||
|
GlStateManager.disableDepth();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.mc.getTextureManager().bindTexture(
|
this.mc.getTextureManager().bindTexture(
|
||||||
@@ -620,9 +625,13 @@ public class GuiContainerCreative extends InventoryEffectRenderer {
|
|||||||
this.func_147051_a(var4);
|
this.func_147051_a(var4);
|
||||||
|
|
||||||
if (var4 == CreativeTabs.tabInventory) {
|
if (var4 == CreativeTabs.tabInventory) {
|
||||||
GuiInventory.drawEntityOnScreen(this.field_147003_i + 43, this.field_147009_r + 45, 20,
|
GlStateManager.enableDepth();
|
||||||
(float) (this.field_147003_i + 43 - p_146976_2_),
|
GuiInventory.drawEntityOnScreen(this.field_147003_i + 43, this.field_147009_r +
|
||||||
(float) (this.field_147009_r + 45 - 30 - p_146976_3_), this.mc.thePlayer);
|
65, 20,
|
||||||
|
(float) (this.field_147003_i + 43 - p_146976_2_),
|
||||||
|
(float) (this.field_147009_r + 45 - 30 - p_146976_3_), this.mc.thePlayer);
|
||||||
|
GlStateManager.disableDepth();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import net.minecraft.client.gui.achievement.GuiStats;
|
|||||||
import net.minecraft.client.renderer.InventoryEffectRenderer;
|
import net.minecraft.client.renderer.InventoryEffectRenderer;
|
||||||
import net.minecraft.client.renderer.OpenGlHelper;
|
import net.minecraft.client.renderer.OpenGlHelper;
|
||||||
import net.minecraft.client.renderer.RenderHelper;
|
import net.minecraft.client.renderer.RenderHelper;
|
||||||
|
import net.minecraft.client.renderer.entity.Render;
|
||||||
import net.minecraft.client.renderer.entity.RenderManager;
|
import net.minecraft.client.renderer.entity.RenderManager;
|
||||||
import net.minecraft.client.resources.I18n;
|
import net.minecraft.client.resources.I18n;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
@@ -66,15 +67,18 @@ public class GuiInventory extends InventoryEffectRenderer {
|
|||||||
int var4 = this.field_147003_i;
|
int var4 = this.field_147003_i;
|
||||||
int var5 = this.field_147009_r;
|
int var5 = this.field_147009_r;
|
||||||
this.drawTexturedModalRect(var4, var5, 0, 0, this.field_146999_f, this.field_147000_g);
|
this.drawTexturedModalRect(var4, var5, 0, 0, this.field_146999_f, this.field_147000_g);
|
||||||
|
|
||||||
|
GlStateManager.enableDepth();
|
||||||
drawEntityOnScreen(var4 + 51, var5 + 75, 30, (float) (var4 + 51) - this.field_147048_u,
|
drawEntityOnScreen(var4 + 51, var5 + 75, 30, (float) (var4 + 51) - this.field_147048_u,
|
||||||
(float) (var5 + 75 - 50) - this.field_147047_v, this.mc.thePlayer);
|
(float) (var5 + 75 - 50) - this.field_147047_v, this.mc.thePlayer);
|
||||||
|
GlStateManager.disableDepth();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void drawEntityOnScreen(int posX, int posY, int scale, float mouseX, float mouseY,
|
public static void drawEntityOnScreen(int posX, int posY, int scale, float mouseX, float mouseY,
|
||||||
EntityLivingBase ent) {
|
EntityLivingBase ent) {
|
||||||
GlStateManager.enableColorMaterial();
|
GlStateManager.enableColorMaterial();
|
||||||
GlStateManager.pushMatrix();
|
GlStateManager.pushMatrix();
|
||||||
GlStateManager.translate((float) posX, (float) posY, 50.0F);
|
GlStateManager.translate((float) posX, (float) posY - 50, 50.0F);
|
||||||
GlStateManager.scale((float) (-scale), (float) scale, (float) scale);
|
GlStateManager.scale((float) (-scale), (float) scale, (float) scale);
|
||||||
GlStateManager.rotate(180.0F, 0.0F, 0.0F, 1.0F);
|
GlStateManager.rotate(180.0F, 0.0F, 0.0F, 1.0F);
|
||||||
float f = ent.renderYawOffset;
|
float f = ent.renderYawOffset;
|
||||||
@@ -93,19 +97,14 @@ public class GuiInventory extends InventoryEffectRenderer {
|
|||||||
ent.prevRotationYawHead = ent.rotationYaw;
|
ent.prevRotationYawHead = ent.rotationYaw;
|
||||||
GlStateManager.translate(0.0F, 0.0F, 0.0F);
|
GlStateManager.translate(0.0F, 0.0F, 0.0F);
|
||||||
RenderManager rendermanager = RenderManager.instance;
|
RenderManager rendermanager = RenderManager.instance;
|
||||||
RenderManager.instance.playerViewY = 180.0F;
|
float oldPlayerViewY = rendermanager.playerViewY;
|
||||||
|
rendermanager.playerViewY = 180.0F;
|
||||||
boolean hideCape = false;
|
Render renderer = rendermanager.getEntityRenderObject(ent);
|
||||||
if (ent instanceof net.minecraft.client.entity.AbstractClientPlayer) {
|
//im gonna molest you
|
||||||
net.minecraft.client.entity.AbstractClientPlayer player = (net.minecraft.client.entity.AbstractClientPlayer) ent;
|
if (renderer != null) {
|
||||||
hideCape = player.getHideCape();
|
renderer.doRender(ent, 0.0D, 0.0D, 0.0D, 0.0F, 1.0F);
|
||||||
player.setHideCape(1, true);
|
|
||||||
}
|
|
||||||
rendermanager.func_147940_a(ent, 0.0D, 0.0D, 0.0D, 0.0F, 1.0F);
|
|
||||||
|
|
||||||
if (ent instanceof net.minecraft.client.entity.AbstractClientPlayer) {
|
|
||||||
((net.minecraft.client.entity.AbstractClientPlayer) ent).setHideCape(1, hideCape);
|
|
||||||
}
|
}
|
||||||
|
rendermanager.playerViewY = oldPlayerViewY;
|
||||||
ent.renderYawOffset = f;
|
ent.renderYawOffset = f;
|
||||||
ent.rotationYaw = f1;
|
ent.rotationYaw = f1;
|
||||||
ent.rotationPitch = f2;
|
ent.rotationPitch = f2;
|
||||||
@@ -114,6 +113,7 @@ public class GuiInventory extends InventoryEffectRenderer {
|
|||||||
GlStateManager.popMatrix();
|
GlStateManager.popMatrix();
|
||||||
RenderHelper.disableStandardItemLighting();
|
RenderHelper.disableStandardItemLighting();
|
||||||
GlStateManager.disableRescaleNormal();
|
GlStateManager.disableRescaleNormal();
|
||||||
|
|
||||||
GlStateManager.setActiveTexture(OpenGlHelper.lightmapTexUnit);
|
GlStateManager.setActiveTexture(OpenGlHelper.lightmapTexUnit);
|
||||||
GlStateManager.disableTexture2D();
|
GlStateManager.disableTexture2D();
|
||||||
GlStateManager.setActiveTexture(OpenGlHelper.defaultTexUnit);
|
GlStateManager.setActiveTexture(OpenGlHelper.defaultTexUnit);
|
||||||
|
|||||||
@@ -61,35 +61,36 @@ public class ItemMonsterPlacer extends Item {
|
|||||||
* clicking, he will have one of those. Return True if something happen and
|
* clicking, he will have one of those. Return True if something happen and
|
||||||
* false if it don't. This is for ITEMS, not BLOCKS
|
* false if it don't. This is for ITEMS, not BLOCKS
|
||||||
*/
|
*/
|
||||||
public boolean onItemUse(ItemStack p_77648_1_, EntityPlayer p_77648_2_, World p_77648_3_, int p_77648_4_,
|
public boolean onItemUse(ItemStack p_77648_1_, EntityPlayer p_77648_2_, World p_77648_3_, int p_77648_4_, int p_77648_5_, int p_77648_6_, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_)
|
||||||
int p_77648_5_, int p_77648_6_, int p_77648_7_, float p_77648_8_, float p_77648_9_, float p_77648_10_) {
|
{
|
||||||
if (p_77648_3_.isClient) {
|
if (p_77648_3_.isClient)
|
||||||
|
{
|
||||||
return true;
|
return true;
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
Block var11 = p_77648_3_.getBlock(p_77648_4_, p_77648_5_, p_77648_6_);
|
Block var11 = p_77648_3_.getBlock(p_77648_4_, p_77648_5_, p_77648_6_);
|
||||||
p_77648_4_ += Facing.offsetsXForSide[p_77648_7_];
|
p_77648_4_ += Facing.offsetsXForSide[p_77648_7_];
|
||||||
p_77648_5_ += Facing.offsetsYForSide[p_77648_7_];
|
p_77648_5_ += Facing.offsetsYForSide[p_77648_7_];
|
||||||
p_77648_6_ += Facing.offsetsZForSide[p_77648_7_];
|
p_77648_6_ += Facing.offsetsZForSide[p_77648_7_];
|
||||||
double var12 = 0.0D;
|
double var12 = 0.0D;
|
||||||
|
|
||||||
if (p_77648_7_ == 1 && var11.getRenderType() == 11) {
|
if (p_77648_7_ == 1 && var11.getRenderType() == 11)
|
||||||
|
{
|
||||||
var12 = 0.5D;
|
var12 = 0.5D;
|
||||||
}
|
}
|
||||||
|
|
||||||
int chunkX = p_77648_4_ >> 4;
|
Entity var14 = spawnCreature(p_77648_3_, p_77648_1_.getItemDamage(), (double)p_77648_4_ + 0.5D, (double)p_77648_5_ + var12, (double)p_77648_6_ + 0.5D);
|
||||||
int chunkZ = p_77648_6_ >> 4;
|
|
||||||
p_77648_3_.getChunkFromChunkCoords(chunkX, chunkZ); // Force load chunk
|
|
||||||
|
|
||||||
Entity var14 = spawnCreature(p_77648_3_, p_77648_1_.getItemDamage(), (double) p_77648_4_ + 0.5D,
|
|
||||||
(double) p_77648_5_ + var12, (double) p_77648_6_ + 0.5D);
|
|
||||||
|
|
||||||
if (var14 != null) {
|
if (var14 != null)
|
||||||
var14.forceSpawn = true; // Force entity to be visible to all players
|
{
|
||||||
if (var14 instanceof EntityLivingBase && p_77648_1_.hasDisplayName()) {
|
if (var14 instanceof EntityLivingBase && p_77648_1_.hasDisplayName())
|
||||||
((EntityLiving) var14).setCustomNameTag(p_77648_1_.getDisplayName());
|
{
|
||||||
|
((EntityLiving)var14).setCustomNameTag(p_77648_1_.getDisplayName());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!p_77648_2_.capabilities.isCreativeMode) {
|
if (!p_77648_2_.capabilities.isCreativeMode)
|
||||||
|
{
|
||||||
--p_77648_1_.stackSize;
|
--p_77648_1_.stackSize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user