Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Roadhog360/Et-Futurum
Browse files Browse the repository at this point in the history
  • Loading branch information
Roadhog360 committed May 16, 2021
2 parents bcbc1eb + 169f464 commit 100ef2a
Show file tree
Hide file tree
Showing 185 changed files with 24 additions and 29 deletions.
1 change: 1 addition & 0 deletions format_all_source_files.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/sh
find "src" -iname "*.java" -exec "./format_source_file.sh" {} \;
find "src" -iname "*.png" -exec optipng -o7 -nc -clobber {} \;
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import ganymedes01.etfuturum.lib.Reference;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.AbstractClientPlayer;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.client.renderer.entity.RenderPlayer;
import net.minecraft.entity.EntityLivingBase;
Expand All @@ -17,67 +15,62 @@

@SideOnly(Side.CLIENT)
public class NewRenderPlayer extends RenderPlayer {

public static final ResourceLocation STEVE_SKIN = new ResourceLocation(Reference.MOD_ID, "textures/steve.png");
private static final ModelBase STEVE = new ModelPlayer(0.0F, false);
private static final ModelBase ALEX = new ModelPlayer(0.0F, true);

private static final ModelPlayer STEVE = new ModelPlayer(0.0F, false), ALEX = new ModelPlayer(0.0F, true);

public NewRenderPlayer() {
renderManager = RenderManager.instance;
mainModel = STEVE;
modelBipedMain = (ModelBiped) mainModel;
mainModel = modelBipedMain = STEVE;
}

private void setModel(EntityPlayer player) {
boolean isAlex;

isAlex = PlayerModelManager.isPlayerModelAlex(player);

mainModel = isAlex ? ALEX : STEVE;
modelBipedMain = (ModelBiped) mainModel;
mainModel = modelBipedMain = PlayerModelManager.isPlayerModelAlex(player) ? ALEX : STEVE;
}

@Override
protected int shouldRenderPass(AbstractClientPlayer player, int pass, float partialTickTime) {
setModel(player);
return super.shouldRenderPass(player, pass, partialTickTime);
}

@Override
public void doRender(AbstractClientPlayer player, double x, double y, double z, float someFloat, float partialTickTime) {
setModel(player);
super.doRender(player, x, y, z, someFloat, partialTickTime);
}

@Override
protected void renderEquippedItems(AbstractClientPlayer player, float partialTickTime) {
setModel(player);
super.renderEquippedItems(player, partialTickTime);
}

@Override
protected ResourceLocation getEntityTexture(AbstractClientPlayer player) {
if (!ConfigurationHandler.enablePlayerSkinOverlay || player.getLocationSkin() == null)
return super.getEntityTexture(player);
return new ResourceLocation(Reference.MOD_ID, player.getLocationSkin().getResourcePath());
}

@Override
protected boolean func_110813_b(EntityLivingBase entity) {
boolean isGUiEnabled = Minecraft.isGuiEnabled();
boolean isPlayer = entity != renderManager.livingPlayer;
boolean isInvisible = !entity.isInvisibleToPlayer(Minecraft.getMinecraft().thePlayer);
boolean isBeingRidden = entity.riddenByEntity == null;

return isGUiEnabled && isPlayer && isInvisible && isBeingRidden;
}

@Override
public void renderFirstPersonArm(EntityPlayer player) {
setModel(player);
Minecraft.getMinecraft().getTextureManager().bindTexture(getEntityTexture(player));

super.renderFirstPersonArm(player);
((ModelPlayer) modelBipedMain).bipedRightArmwear.render(0.0625F);

// This call is not needed at all due to bipedRightArmwear being a Child of bipedRightArm, therefore moving and rendering with it automatically already.
//((ModelPlayer) modelBipedMain).bipedRightArmwear.render(0.0625F);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ public void addInformation(ItemStack stack, EntityPlayer p_77624_2_, List list,
// TODO This did nothing at all
//while (iterator.hasNext())
//{
// Entry<?, ?> entry = (Entry<?, ?>)iterator.next();
// AttributeModifier attributemodifier = (AttributeModifier)entry.getValue();
// AttributeModifier attributemodifier1 = new AttributeModifier(attributemodifier.getName(), potion.func_111183_a(potioneffect.getAmplifier(), attributemodifier), attributemodifier.getOperation());
// //hashmultimap.put(((IAttribute)entry.getKey()).getAttributeUnlocalizedName(), attributemodifier1);
// Entry<?, ?> entry = (Entry<?, ?>)iterator.next();
// AttributeModifier attributemodifier = (AttributeModifier)entry.getValue();
// AttributeModifier attributemodifier1 = new AttributeModifier(attributemodifier.getName(), potion.func_111183_a(potioneffect.getAmplifier(), attributemodifier), attributemodifier.getOperation());
// //hashmultimap.put(((IAttribute)entry.getKey()).getAttributeUnlocalizedName(), attributemodifier1);
//}
}

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/ganymedes01/etfuturum/recipes/ModRecipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
import ganymedes01.etfuturum.ModBlocks;
import ganymedes01.etfuturum.ModItems;
import ganymedes01.etfuturum.blocks.BlockGlazedTerracotta;
import ganymedes01.etfuturum.blocks.BlockStoneSlab2;
import ganymedes01.etfuturum.blocks.BlockNewStone;
import ganymedes01.etfuturum.blocks.BlockStoneSlab2;
import ganymedes01.etfuturum.blocks.ores.BlockDeepslateOre;
import ganymedes01.etfuturum.configuration.ConfigurationHandler;
import ganymedes01.etfuturum.items.ItemSuspiciousStew;
Expand Down Expand Up @@ -218,6 +218,7 @@ private static void registerOreDictionary() {
if(ConfigurationHandler.enableCopper) {
OreDictionary.registerOre("oreCopper", new ItemStack(ModBlocks.copper_ore, 1, 0));
OreDictionary.registerOre("ingotCopper", new ItemStack(ModItems.copper_ingot, 1, 0));
if (ConfigurationHandler.copper9to1)
OreDictionary.registerOre("blockCopper", new ItemStack(ModBlocks.copper_block, 1, 0));
OreDictionary.registerOre("blockCopperCut", new ItemStack(ModBlocks.copper_block, 1, 4));
}
Expand Down
Binary file modified src/main/resources/assets/etfuturum/textures/gui/container/brewing_stand.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/etfuturum/textures/gui/container/enchanting_table.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/minecraft/textures/blocks/beetroots_stage_3.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/minecraft/textures/blocks/chorus_flower.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/minecraft/textures/blocks/chorus_flower_dead.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/minecraft/textures/blocks/chorus_plant.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/minecraft/textures/blocks/copper_ore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/assets/minecraft/textures/blocks/door_acacia_lower.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/door_acacia_upper.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/door_birch_lower.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/door_birch_upper.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/door_dark_oak_lower.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/door_dark_oak_upper.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/door_jungle_lower.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/door_jungle_upper.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/door_spruce_lower.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/door_spruce_upper.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/end_bricks.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/end_rod.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/frosted_ice_1.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/frosted_ice_2.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/frosted_ice_3.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/grass_path_side.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/grass_path_top.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/old_gravel.png
Binary file modified src/main/resources/assets/minecraft/textures/blocks/purpur_block.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/purpur_pillar.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/purpur_pillar_top.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/blocks/sponge.png
Binary file modified src/main/resources/assets/minecraft/textures/entity/elytra.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/entity/endermite.png
Binary file modified src/main/resources/assets/minecraft/textures/entity/guardian.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/entity/guardian_elder.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/entity/rabbit/black.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/entity/rabbit/brown.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/entity/rabbit/gold.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/entity/rabbit/salt.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/entity/rabbit/toast.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/entity/rabbit/white.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/entity/rabbit/white_splotched.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/entity/shulker/endergolem.png
100755 → 100644
Binary file modified ...n/resources/assets/minecraft/textures/entity/zombie_villager/zombie_butcher.png
100755 → 100644
Binary file modified ...in/resources/assets/minecraft/textures/entity/zombie_villager/zombie_farmer.png
100755 → 100644
Binary file modified ...resources/assets/minecraft/textures/entity/zombie_villager/zombie_librarian.png
100755 → 100644
Binary file modified ...in/resources/assets/minecraft/textures/entity/zombie_villager/zombie_priest.png
100755 → 100644
Binary file modified ...ain/resources/assets/minecraft/textures/entity/zombie_villager/zombie_smith.png
100755 → 100644
Binary file modified .../resources/assets/minecraft/textures/entity/zombie_villager/zombie_villager.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/items/beetroot.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/items/beetroot_seeds.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/items/beetroot_soup.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/items/broken_elytra.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/items/chorus_fruit.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/items/chorus_fruit_popped.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/items/door_iron.png
Binary file modified src/main/resources/assets/minecraft/textures/items/door_wood.png
Binary file modified src/main/resources/assets/minecraft/textures/items/dragon_breath.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/items/elytra.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/items/end_crystal.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/items/mutton_raw.png
Binary file modified src/main/resources/assets/minecraft/textures/items/potion_bottle_lingering.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/items/rabbit_hide.png
Binary file modified src/main/resources/assets/minecraft/textures/items/rabbit_raw.png
Binary file modified src/main/resources/assets/minecraft/textures/items/spectral_arrow.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/items/tipped_arrow_base.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/items/tipped_arrow_head.png
100755 → 100644
Binary file modified src/main/resources/assets/minecraft/textures/particle/particles.png
100755 → 100644

0 comments on commit 100ef2a

Please sign in to comment.