yesterday's shit buffet

This commit is contained in:
Boblet 2025-04-18 07:49:30 +02:00
parent eeefb0e4eb
commit 78089b2265
17 changed files with 82 additions and 101 deletions

View File

@ -79,10 +79,14 @@ public class ItemEnums {
}
public static enum EnumSecretType {
CANISTER, CONTROLLER, SELENIUM_STEEL, ABERRATOR
CANISTER, CONTROLLER, SELENIUM_STEEL, ABERRATOR, FOLLY
}
public static enum EnumCasingType {
SMALL, LARGE, SMALL_STEEL, LARGE_STEEL, SHOTSHELL, BUCKSHOT, BUCKSHOT_ADVANCED
}
public static enum EnumIngotMetal {
INGOT, COUNTER, KEY, BEACON, CASING, CLOCKWORK, BAR, DETECTOR
}
}

View File

@ -343,6 +343,7 @@ public class ModItems {
public static Item safety_fuse;
public static Item part_generic;
public static Item item_secret;
public static Item ingot_metal;
public static Item chemical_dye;
public static Item crayon;
@ -2369,6 +2370,7 @@ public class ModItems {
safety_fuse = new Item().setUnlocalizedName("safety_fuse").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":safety_fuse");
part_generic = new ItemGenericPart().setUnlocalizedName("part_generic").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":part_generic");
item_secret = new ItemEnumMulti(EnumSecretType.class, true, true).setUnlocalizedName("item_secret").setCreativeTab(null).setTextureName(RefStrings.MODID + ":item_secret");
ingot_metal = new ItemEnumMulti(EnumIngotMetal.class, true, true).setUnlocalizedName("ingot_metal").setCreativeTab(null).setTextureName(RefStrings.MODID + ":ingot_metal");
chemical_dye = new ItemChemicalDye().setUnlocalizedName("chemical_dye").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":chemical_dye");
crayon = new ItemCrayon().setUnlocalizedName("crayon").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":crayon");
@ -2433,7 +2435,6 @@ public class ModItems {
ingot_bakelite = new ItemCustomLore().setUnlocalizedName("ingot_bakelite").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_bakelite");
ingot_biorubber = new ItemCustomLore().setUnlocalizedName("ingot_biorubber").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_biorubber");
ingot_rubber = new ItemCustomLore().setUnlocalizedName("ingot_rubber").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_rubber");
//ingot_pet = new ItemCustomLore().setUnlocalizedName("ingot_pet").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_pet");
ingot_pc = new ItemCustomLore().setUnlocalizedName("ingot_pc").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_pc");
ingot_pvc = new ItemCustomLore().setUnlocalizedName("ingot_pvc").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_pvc");
ingot_desh = new ItemCustomLore().setUnlocalizedName("ingot_desh").setCreativeTab(MainRegistry.partsTab).setTextureName(RefStrings.MODID + ":ingot_desh");
@ -5574,6 +5575,7 @@ public class ModItems {
GameRegistry.registerItem(crayon, crayon.getUnlocalizedName());
GameRegistry.registerItem(part_generic, part_generic.getUnlocalizedName());
GameRegistry.registerItem(item_secret, item_secret.getUnlocalizedName());
GameRegistry.registerItem(ingot_metal, ingot_metal.getUnlocalizedName());
GameRegistry.registerItem(parts_legendary, parts_legendary.getUnlocalizedName());
GameRegistry.registerItem(gear_large, gear_large.getUnlocalizedName());
GameRegistry.registerItem(sawblade, sawblade.getUnlocalizedName());

View File

@ -10,6 +10,7 @@ import com.hbm.blocks.generic.BlockPlushie.TileEntityPlushie;
import com.hbm.config.ClientConfig;
import com.hbm.config.CustomMachineConfigJSON;
import com.hbm.handler.nei.CustomMachineHandler;
import com.hbm.items.ItemEnums.EnumIngotMetal;
import com.hbm.items.ItemEnums.EnumSecretType;
import com.hbm.items.ModItems;
import com.hbm.items.machine.ItemBattery;
@ -42,6 +43,8 @@ public class NEIConfig implements IConfigureNEI {
for(int i = 0; i < EnumAmmoSecret.values().length; i++) API.hideItem(new ItemStack(ModItems.ammo_secret, 1, i));
for(int i = 0; i < EnumSecretType.values().length; i++) API.hideItem(new ItemStack(ModItems.item_secret, 1, i));
}
for(int i = 0; i < EnumIngotMetal.values().length; i++) API.hideItem(new ItemStack(ModItems.ingot_metal, 1, i));
//Some things are even beyond my control...or are they?
API.hideItem(ItemBattery.getEmptyBattery(ModItems.memory));

View File

@ -60,15 +60,15 @@ public class ModelRendererObj {
}
public void copyRotationFrom(ModelRenderer model) {
/*offsetX = model.offsetX;
offsetX = model.offsetX;
offsetY = model.offsetY;
offsetZ = model.offsetZ;*/
offsetZ = model.offsetZ;
rotateAngleX = model.rotateAngleX;
rotateAngleY = model.rotateAngleY;
rotateAngleZ = model.rotateAngleZ;
/*rotationPointX = model.rotationPointX;
rotationPointX = model.rotationPointX;
rotationPointY = model.rotationPointY;
rotationPointZ = model.rotationPointZ;*/
rotationPointZ = model.rotationPointZ;
}
@SideOnly(Side.CLIENT)
@ -79,23 +79,14 @@ public class ModelRendererObj {
GL11.glPushMatrix();
GL11.glTranslatef(this.offsetX * scale, this.offsetY * scale, this.offsetZ * scale);
GL11.glTranslatef(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale);
if(this.rotateAngleZ != 0.0F) {
GL11.glRotatef(this.rotateAngleZ * (180F / (float) Math.PI), 0.0F, 0.0F, 1.0F);
}
if(this.rotateAngleZ != 0.0F) GL11.glRotatef(this.rotateAngleZ * (180F / (float) Math.PI), 0.0F, 0.0F, 1.0F);
if(this.rotateAngleY != 0.0F) GL11.glRotatef(this.rotateAngleY * (180F / (float) Math.PI), 0.0F, 1.0F, 0.0F);
if(this.rotateAngleX != 0.0F) GL11.glRotatef(this.rotateAngleX * (180F / (float) Math.PI), 1.0F, 0.0F, 0.0F);
if(this.rotateAngleY != 0.0F) {
GL11.glRotatef(this.rotateAngleY * (180F / (float) Math.PI), 0.0F, 1.0F, 0.0F);
}
if(this.rotateAngleX != 0.0F) {
GL11.glRotatef(this.rotateAngleX * (180F / (float) Math.PI), 1.0F, 0.0F, 0.0F);
}
GL11.glTranslatef(-this.rotationPointX * scale, -this.rotationPointY * scale, -this.originPointZ * scale); //yes, that is correct
GL11.glTranslatef(-this.rotationPointX * scale, -this.originPointY * scale, -this.originPointZ * scale);
GL11.glTranslatef(-this.offsetX * scale, -this.offsetY * scale, -this.offsetZ * scale);
GL11.glScalef(scale, scale, scale);
@ -111,26 +102,18 @@ public class ModelRendererObj {
}
@SideOnly(Side.CLIENT)
public void postRender(float p_78794_1_) {
public void postRender(float scale) {
if(this.rotateAngleX == 0.0F && this.rotateAngleY == 0.0F && this.rotateAngleZ == 0.0F) {
if(this.rotationPointX != 0.0F || this.rotationPointY != 0.0F || this.rotationPointZ != 0.0F) {
GL11.glTranslatef(this.rotationPointX * p_78794_1_, this.rotationPointY * p_78794_1_, this.rotationPointZ * p_78794_1_);
GL11.glTranslatef(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale);
}
} else {
GL11.glTranslatef(this.rotationPointX * p_78794_1_, this.rotationPointY * p_78794_1_, this.rotationPointZ * p_78794_1_);
GL11.glTranslatef(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale);
if(this.rotateAngleZ != 0.0F) {
GL11.glRotatef(this.rotateAngleZ * (180F / (float) Math.PI), 0.0F, 0.0F, 1.0F);
}
if(this.rotateAngleY != 0.0F) {
GL11.glRotatef(this.rotateAngleY * (180F / (float) Math.PI), 0.0F, 1.0F, 0.0F);
}
if(this.rotateAngleX != 0.0F) {
GL11.glRotatef(this.rotateAngleX * (180F / (float) Math.PI), 1.0F, 0.0F, 0.0F);
}
if(this.rotateAngleZ != 0.0F) GL11.glRotatef(this.rotateAngleZ * (180F / (float) Math.PI), 0.0F, 0.0F, 1.0F);
if(this.rotateAngleY != 0.0F) GL11.glRotatef(this.rotateAngleY * (180F / (float) Math.PI), 0.0F, 1.0F, 0.0F);
if(this.rotateAngleX != 0.0F) GL11.glRotatef(this.rotateAngleX * (180F / (float) Math.PI), 1.0F, 0.0F, 0.0F);
}
}
}

View File

@ -1,6 +1,5 @@
package com.hbm.render.model;
import com.hbm.interfaces.IHoldableWeapon;
import com.hbm.render.loader.ModelRendererObj;
import net.minecraft.client.Minecraft;
@ -10,8 +9,6 @@ import net.minecraft.client.renderer.entity.RenderBiped;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.client.renderer.entity.RenderPlayer;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumAction;
import net.minecraft.util.MathHelper;
import net.minecraft.util.ResourceLocation;
@ -51,68 +48,31 @@ public class ModelArmorBase extends ModelBiped {
RenderPlayer renderPlayer = (RenderPlayer) render;
this.copyPropertiesFromBiped(renderPlayer.modelBipedMain);
calculateRotations = false;
} else if(render instanceof RenderBiped) {
RenderBiped renderBiped = (RenderBiped) render;
this.copyPropertiesFromBiped(renderBiped.modelBipedMain);
calculateRotations = false;
}
this.rightFoot.rotateAngleX = this.rightLeg.rotateAngleX = MathHelper.cos(limbSwing * 0.6662F) * 1.4F * limbSwingAmount;
this.leftFoot.rotateAngleX = this.leftLeg.rotateAngleX = MathHelper.cos(limbSwing * 0.6662F + (float) Math.PI) * 1.4F * limbSwingAmount;
this.rightFoot.rotateAngleY = this.rightLeg.rotateAngleY = 0.0F;
this.leftFoot.rotateAngleY = this.leftLeg.rotateAngleY = 0.0F;
if(entity instanceof EntityPlayer) {
EntityPlayer player = (EntityPlayer) entity;
this.aimedBow = false;
if(player.getHeldItem() != null) {
int hold = 1;
if(player.getItemInUseCount() > 0) {
EnumAction action = player.getHeldItem().getItemUseAction();
if(action == EnumAction.block)
hold = 3;
if(action == EnumAction.bow)
this.aimedBow = true;
}
if(player.getHeldItem().getItem() instanceof IHoldableWeapon)
this.aimedBow = true;
if(calculateRotations)
this.rightArm.rotateAngleX = this.rightArm.rotateAngleX * 0.5F - ((float) Math.PI / 10F) * hold;
}
}
this.isSneak = entity.isSneaking();
this.isRiding = entity.isRiding();
if(this.isRiding) {
this.rightFoot.rotateAngleX = this.rightLeg.rotateAngleX = -((float) Math.PI * 2F / 5F);
this.leftFoot.rotateAngleX = this.leftLeg.rotateAngleX = -((float) Math.PI * 2F / 5F);
this.rightFoot.rotateAngleY = this.rightLeg.rotateAngleY = ((float) Math.PI / 10F);
this.leftFoot.rotateAngleY = this.leftLeg.rotateAngleY = -((float) Math.PI / 10F);
}
if(this.isSneak) {
this.rightFoot.offsetZ = this.rightLeg.offsetZ = 4.0F;
this.leftFoot.offsetZ = this.leftLeg.offsetZ = 4.0F;
this.rightFoot.offsetY = this.rightLeg.offsetY = -3.0F;
this.leftFoot.offsetY = this.leftLeg.offsetY = -3.0F;
} else {
this.rightFoot.offsetZ = this.rightLeg.offsetZ = 0.1F;
this.leftFoot.offsetZ = this.leftLeg.offsetZ = 0.1F;
this.rightFoot.offsetY = this.rightLeg.offsetY = 0.0F;
this.leftFoot.offsetY = this.leftLeg.offsetY = 0.0F;
}
/// FALLBACK ///
if(calculateRotations) {
this.isSneak = entity.isSneaking();
this.isRiding = entity.isRiding();
if(this.isSneak) {
this.rightFoot.offsetZ = this.rightLeg.offsetZ = 4.0F;
this.leftFoot.offsetZ = this.leftLeg.offsetZ = 4.0F;
this.rightFoot.offsetY = this.rightLeg.offsetY = -3.0F;
this.leftFoot.offsetY = this.leftLeg.offsetY = -3.0F;
} else {
this.rightFoot.offsetZ = this.rightLeg.offsetZ = 0.1F;
this.leftFoot.offsetZ = this.leftLeg.offsetZ = 0.1F;
this.rightFoot.offsetY = this.rightLeg.offsetY = 0.0F;
this.leftFoot.offsetY = this.leftLeg.offsetY = 0.0F;
}
this.head.rotateAngleY = netHeadYaw / (180F / (float) Math.PI);
this.head.rotateAngleX = headPitch / (180F / (float) Math.PI);
this.rightArm.rotateAngleX = MathHelper.cos(limbSwing * 0.6662F + (float) Math.PI) * 2.0F * limbSwingAmount * 0.5F;
@ -194,20 +154,22 @@ public class ModelArmorBase extends ModelBiped {
}
protected static void bindTexture(ResourceLocation location) {
Minecraft.getMinecraft().renderEngine.bindTexture(location);
}
private void copyPropertiesFromBiped(ModelBiped modelBiped) {
this.head.copyRotationFrom(modelBiped.bipedHead);
this.head.offsetY = modelBiped.bipedHead.offsetY;
this.body.copyRotationFrom(modelBiped.bipedBody);
this.leftArm.copyRotationFrom(modelBiped.bipedLeftArm);
this.leftArm.rotationPointX = modelBiped.bipedLeftArm.rotationPointX;
this.leftArm.rotationPointZ = modelBiped.bipedLeftArm.rotationPointZ;
this.rightArm.copyRotationFrom(modelBiped.bipedRightArm);
this.rightArm.rotationPointX = modelBiped.bipedRightArm.rotationPointX;
this.rightArm.rotationPointZ = modelBiped.bipedRightArm.rotationPointZ;
this.leftLeg.copyRotationFrom(modelBiped.bipedLeftLeg);
this.rightLeg.copyRotationFrom(modelBiped.bipedRightLeg);
this.leftFoot.copyRotationFrom(modelBiped.bipedLeftLeg);
this.rightFoot.copyRotationFrom(modelBiped.bipedRightLeg);
// compat crap
this.aimedBow = modelBiped.aimedBow;
this.isSneak = modelBiped.isSneak;
this.isRiding = modelBiped.isRiding;
}
}

View File

@ -18,9 +18,10 @@ import net.minecraftforge.common.BiomeManager.BiomeType;
public class BiomeGenNoMansLand extends BiomeGenBase {
public static final BiomeGenBase noMansLand = new BiomeGenNoMansLand(99).setBiomeName("No Man's Land");
public static final List EMPTY_LIST = new ArrayList(0);
public static final List HOSTILE_LIST = new ArrayList(0);
public static final List HOSTILE_LIST = new ArrayList(1);
public static final BiomeGenBase noMansLand = new BiomeGenNoMansLand(99).setBiomeName("No Man's Land");
public static void initDictionary() {
BiomeDictionary.registerBiomeType(noMansLand, DEAD, PLAINS, WASTELAND);
@ -45,7 +46,13 @@ public class BiomeGenNoMansLand extends BiomeGenBase {
@Override
public List getSpawnableList(EnumCreatureType type) {
if(type == type.monster) return this.HOSTILE_LIST;
if(type == type.monster) {
if(this.HOSTILE_LIST.size() != 1) {
this.HOSTILE_LIST.clear();
this.HOSTILE_LIST.add(new BiomeGenBase.SpawnListEntry(EntityUndeadSoldier.class, 1, 4, 6));
}
return this.HOSTILE_LIST;
}
if(!EMPTY_LIST.isEmpty()) EMPTY_LIST.clear();
return EMPTY_LIST;
}

View File

@ -2222,6 +2222,15 @@ item.ingot_lanthanium.name=Semistabiler Lanthanbarren
item.ingot_lead.name=Bleibarren
item.ingot_les.name=Schwach angereicherter Schrabidiumkernbrennstoffbarren
item.ingot_magnetized_tungsten.name=Magnetisierter Wolframbarren
item.ingot_metal.name=Metallbarren
item.ingot_metal.bar.name=Metallstange
item.ingot_metal.beacon.name=Funkleitstrahl
item.ingot_metal.casing.name=Metallgehäuse
item.ingot_metal.clockwork.name=Uhrwerk
item.ingot_metal.counter.name=Zählwerk
item.ingot_metal.detector.name=Detektor
item.ingot_metal.ingot.name=Metallbarren
item.ingot_metal.key.name=Metallschlüssel
item.ingot_meteorite.name=Meteoritenbarren
item.ingot_meteorite_forged.name=Geschmiedeter Meteoritenbarren
item.ingot_mox_fuel.name=MOX-Kernbrennstoffbarren
@ -2296,6 +2305,7 @@ item.insert_yharonite.name=Yharoniteinlage
item.item_secret.aberrator.name=Aberrator-Teil
item.item_secret.canister.name=Komposit SB-26
item.item_secret.controller.name=Proprietäre Steuereinheit
item.item_secret.folly.name=Folly-Teil
item.item_secret.selenium_steel.name=Selen-Stahl
item.iv_blood.name=Blutbeutel
item.iv_empty.name=Infusionsbeutel

View File

@ -3043,6 +3043,15 @@ item.ingot_lanthanium.desc.P11=Actually Lanthanum, but whatever.
item.ingot_lead.name=Lead Ingot
item.ingot_les.name=Low Enriched Schrabidium Fuel Ingot
item.ingot_magnetized_tungsten.name=Magnetized Tungsten Ingot
item.ingot_metal.name=Metal Ingot
item.ingot_metal.bar.name=Metal Bar
item.ingot_metal.beacon.name=Radio Homing Beacon
item.ingot_metal.casing.name=Metal Casing
item.ingot_metal.clockwork.name=Clockwork
item.ingot_metal.counter.name=Counter
item.ingot_metal.detector.name=Detector
item.ingot_metal.ingot.name=Metal Ingot
item.ingot_metal.key.name=Metal Key
item.ingot_meteorite.name=Meteorite Ingot
item.ingot_meteorite_forged.name=Forged Meteorite Ingot
item.ingot_mox_fuel.name=Ingot of MOX Fuel
@ -3123,6 +3132,7 @@ item.insert_yharonite.name=Yharonite Insert
item.item_secret.aberrator.name=Aberrator Part
item.item_secret.canister.name=Composition SB-26
item.item_secret.controller.name=Proprietary Control Unit
item.item_secret.folly.name=Folly Part
item.item_secret.selenium_steel.name=Selenium Steel
item.iv_blood.name=Blood Bag
item.iv_empty.name=IV Bag

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 596 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 526 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 466 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 B