Skip to content

Commit

Permalink
final push for 1.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Flemmli97 committed Jul 17, 2018
1 parent 0d38b17 commit 5fa9cd4
Show file tree
Hide file tree
Showing 224 changed files with 2,554 additions and 592 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified build.gradle
100644 → 100755
Empty file.
Empty file modified gradle.properties
100644 → 100755
Empty file.
Empty file modified gradle/wrapper/gradle-wrapper.jar
100644 → 100755
Empty file.
Empty file modified gradle/wrapper/gradle-wrapper.properties
100644 → 100755
Empty file.
Empty file modified gradlew.bat
100644 → 100755
Empty file.
Empty file modified src/main/java/com/flemmli97/fatemod/Fate.java
100644 → 100755
Empty file.
Empty file.
Empty file modified src/main/java/com/flemmli97/fatemod/client/gui/GuiSlider.java
100644 → 100755
Empty file.
Empty file.

Large diffs are not rendered by default.

695 changes: 695 additions & 0 deletions src/main/java/com/flemmli97/fatemod/client/model/ModelWheel.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package com.flemmli97.fatemod.client.model.servant;

import org.lwjgl.opengl.GL11;

import com.flemmli97.fatemod.common.entity.servant.EntityArthur;

import net.minecraft.entity.Entity;

public class ModelArthur extends ModelServant {
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion src/main/java/com/flemmli97/fatemod/client/render/RenderEA.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.Vec3d;

public class RenderEA<T extends EntityEnumaElish> extends RenderProjectileBase<T>{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.Vec3d;

public class RenderExcalibur<T extends EntityExcalibur> extends RenderProjectileBase<T>{

Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.flemmli97.fatemod.client.render;

import com.flemmli97.fatemod.Fate;
import com.flemmli97.fatemod.client.model.ModelGordiusWheel;
import com.flemmli97.fatemod.common.entity.EntityGordiusWheel;

import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.util.ResourceLocation;

public class RenderGordiusWheel extends RenderLiving<EntityGordiusWheel>{

public static ResourceLocation tex = new ResourceLocation(Fate.MODID+":textures/entity/gordiusWheel.png");

public RenderGordiusWheel(RenderManager rendermanagerIn) {
super(rendermanagerIn, new ModelGordiusWheel(), 1);
}

@Override
protected ResourceLocation getEntityTexture(EntityGordiusWheel entity) {
return tex;
}

}
Empty file.
Empty file.
Empty file.
6 changes: 2 additions & 4 deletions src/main/java/com/flemmli97/fatemod/client/render/layer/LayerHand.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.EntityRenderer;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.VertexBuffer;
Expand All @@ -21,7 +20,6 @@
import net.minecraft.client.renderer.entity.RenderLivingBase;
import net.minecraft.client.renderer.entity.layers.LayerRenderer;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.client.renderer.texture.TextureUtil;
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
import net.minecraft.client.renderer.vertex.VertexFormat;
import net.minecraft.entity.EntityLivingBase;
Expand All @@ -31,7 +29,6 @@
import net.minecraft.util.EnumHandSide;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import net.minecraftforge.client.ForgeHooksClient;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

Expand Down Expand Up @@ -180,7 +177,8 @@ public static void renderQuadColor(VertexBuffer wr, BakedQuad quad, int auxColor
putQuadColor(wr, quad, auxColor);
}

public static void putQuadColor(VertexBuffer renderer, BakedQuad quad, int color)
@SuppressWarnings("unused")
public static void putQuadColor(VertexBuffer renderer, BakedQuad quad, int color)
{
float cb = color & 0xFF;
float cg = (color >>> 8) & 0xFF;
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public RenderArthur(RenderManager renderManager)
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityArthur entity)
@Override
protected ResourceLocation servantTexture(EntityArthur entity)
{
return textures;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public RenderCuchulainn(RenderManager renderManager)
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityCuchulainn entity)
@Override
protected ResourceLocation servantTexture(EntityCuchulainn entity)
{
return textures;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public RenderDiarmuid(RenderManager renderManager)
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityDiarmuid entity)
@Override
protected ResourceLocation servantTexture(EntityDiarmuid entity)
{
return textures;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public RenderEmiya(RenderManager renderManager)
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityEmiya entity)
@Override
protected ResourceLocation servantTexture(EntityEmiya entity)
{
return textures;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public RenderGilgamesh(RenderManager manager)
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityGilgamesh entity)
@Override
protected ResourceLocation servantTexture(EntityGilgamesh entity)
{
return textures;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public RenderGilles(RenderManager renderManager)
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityGilles entity)
@Override
protected ResourceLocation servantTexture(EntityGilles entity)
{
return textures;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public RenderHassan(RenderManager renderManager)
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityHassan entity)
@Override
protected ResourceLocation servantTexture(EntityHassan entity)
{
return textures;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.flemmli97.fatemod.client.render.servant;

import com.flemmli97.fatemod.Fate;
import com.flemmli97.fatemod.client.model.servant.ModelHassan;
import com.flemmli97.fatemod.common.entity.servant.EntityHassanCopy;

import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.util.ResourceLocation;

public class RenderHassanCopy extends RenderServant<EntityHassanCopy>
{
private static final ResourceLocation textures = new ResourceLocation(Fate.MODID + ":textures/entity/servant/hassan.png");
public RenderHassanCopy(RenderManager renderManager)
{
super(renderManager, new ModelHassan(), 0.5F);
}

/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
@Override
protected ResourceLocation servantTexture(EntityHassanCopy entity)
{
return textures;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public RenderHeracles(RenderManager renderManager)
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityHeracles entity)
@Override
protected ResourceLocation servantTexture(EntityHeracles entity)
{
return textures;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public RenderIskander(RenderManager renderManager)
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityIskander entityIskander)
@Override
protected ResourceLocation servantTexture(EntityIskander entityIskander)
{
return textures;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public RenderLancelot(RenderManager renderManager)
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityLancelot entityLancelot)
@Override
protected ResourceLocation servantTexture(EntityLancelot entityLancelot)
{
return textures;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public RenderMedea(RenderManager renderManager)
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
@Override
protected ResourceLocation getEntityTexture(EntityMedea entity)
{
return textures;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public RenderMedusa(RenderManager renderManager)
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntityMedusa entity)
@Override
protected ResourceLocation servantTexture(EntityMedusa entity)
{
return textures;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public RenderSasaki(RenderManager renderManager)
/**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/
protected ResourceLocation getEntityTexture(EntitySasaki entitySasaki)
@Override
protected ResourceLocation servantTexture(EntitySasaki entitySasaki)
{
return textures;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.client.renderer.entity.layers.LayerCustomHead;
import net.minecraft.entity.EntityLiving;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumHand;
import net.minecraft.util.ResourceLocation;

public class RenderServant<T extends EntityServant> extends RenderLiving<T>{
public abstract class RenderServant<T extends EntityServant> extends RenderLiving<T>{


private static final ResourceLocation DEFAULT_RES_LOC = new ResourceLocation("textures/entity/steve.png");
protected ModelServant modelServantMain;
protected ModelServant defaultModel = new ModelServant();
protected float scale;

public RenderServant(RenderManager renderManagerIn, ModelServant modelServant, float shadowSize)
Expand All @@ -29,9 +29,9 @@ public RenderServant(RenderManager renderManagerIn, ModelServant modelServant, f
}

@Override
protected void preRenderCallback(T entitylivingbaseIn, float partialTickTime) {
ItemStack stackMain = entitylivingbaseIn.stackFromHand(EnumHand.MAIN_HAND);
ItemStack stackOff = entitylivingbaseIn.stackFromHand(EnumHand.OFF_HAND);
protected void preRenderCallback(T servant, float partialTickTime) {
ItemStack stackMain = servant.stackFromHand(EnumHand.MAIN_HAND);
ItemStack stackOff = servant.stackFromHand(EnumHand.OFF_HAND);
modelServantMain.heldItemMain = 0;
modelServantMain.heldItemOff = 0;
if(stackMain!=null)
Expand All @@ -42,26 +42,26 @@ protected void preRenderCallback(T entitylivingbaseIn, float partialTickTime) {
{
modelServantMain.heldItemOff = 1;
}
super.preRenderCallback(entitylivingbaseIn, partialTickTime);
if(!servant.showServant())
this.mainModel=this.defaultModel;
super.preRenderCallback(servant, partialTickTime);
}

@Override
public void doRender(T entity, double x, double y, double z, float entityYaw, float partialTicks) {
super.doRender(entity, x, y, z, entityYaw, partialTicks);
}

@Override
protected ResourceLocation getEntityTexture(T entity)
{
return DEFAULT_RES_LOC;
return entity.showServant()?this.servantTexture(entity):DEFAULT_RES_LOC;
}


protected abstract ResourceLocation servantTexture(T entity);

@Override
public void transformHeldFull3DItemLayer()
{
GlStateManager.translate(0.0F, 0.1875F, 0.0F);
}

protected int shouldRenderPass(EntityLiving entity, int par1, float par2)
{
return -1;
}
}
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

This file was deleted.

Loading

0 comments on commit 5fa9cd4

Please sign in to comment.