Skip to content

Commit

Permalink
Remodeled female buff shark
Browse files Browse the repository at this point in the history
  • Loading branch information
LtxProgrammer committed Sep 11, 2024
1 parent a47a384 commit 13b607a
Show file tree
Hide file tree
Showing 12 changed files with 277 additions and 453 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package net.ltxprogrammer.changed.client.renderer;

import com.mojang.blaze3d.vertex.PoseStack;
import net.ltxprogrammer.changed.Changed;
import net.ltxprogrammer.changed.client.renderer.layers.CustomEyesLayer;
import net.ltxprogrammer.changed.client.renderer.layers.GasMaskLayer;
import net.ltxprogrammer.changed.client.renderer.layers.LatexParticlesLayer;
import net.ltxprogrammer.changed.client.renderer.layers.TransfurCapeLayer;
import net.ltxprogrammer.changed.client.renderer.model.BuffLatexSharkFemaleModel;
import net.ltxprogrammer.changed.client.renderer.model.armor.ArmorLatexFemaleSharkModel;
import net.ltxprogrammer.changed.entity.beast.BuffLatexSharkFemale;
import net.ltxprogrammer.changed.util.Color3;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.resources.ResourceLocation;

public class BuffLatexSharkFemaleRenderer extends AdvancedHumanoidRenderer<BuffLatexSharkFemale, BuffLatexSharkFemaleModel, ArmorLatexFemaleSharkModel<BuffLatexSharkFemale>> {
public BuffLatexSharkFemaleRenderer(EntityRendererProvider.Context context) {
super(context, new BuffLatexSharkFemaleModel(context.bakeLayer(BuffLatexSharkFemaleModel.LAYER_LOCATION)),
ArmorLatexFemaleSharkModel::new, ArmorLatexFemaleSharkModel.INNER_ARMOR, ArmorLatexFemaleSharkModel.OUTER_ARMOR, 0.5f);
this.addLayer(new LatexParticlesLayer<>(this, this.model));
this.addLayer(TransfurCapeLayer.normalCape(this, context.getModelSet()));
this.addLayer(CustomEyesLayer.builder(this, context.getModelSet())
.withEyelashes(Color3.fromInt(0x1a1a1b)).build());
this.addLayer(GasMaskLayer.forLargeSnouted(this, context.getModelSet()));
}

@Override
public ResourceLocation getTextureLocation(BuffLatexSharkFemale p_114482_) {
return Changed.modResource("textures/latex_shark_buff_female.png");
}

@Override
protected void scale(BuffLatexSharkFemale entity, PoseStack pose, float partialTick) {
float modelScale = 1.0525F;
pose.scale(modelScale, modelScale, modelScale);
}
}

This file was deleted.

Large diffs are not rendered by default.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

import java.util.List;

public class LatexSharkFemale extends AbstractLatexShark implements GenderedEntity {
public LatexSharkFemale(EntityType<? extends LatexSharkFemale> p_19870_, Level p_19871_) {
public class BuffLatexSharkFemale extends AbstractLatexShark implements GenderedEntity {
public BuffLatexSharkFemale(EntityType<? extends BuffLatexSharkFemale> p_19870_, Level p_19871_) {
super(p_19870_, p_19871_);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ public static boolean noSpawning(Biome.BiomeCategory category) {
public static final RegistryObject<EntityType<BuffLatexSharkMale>> LATEX_SHARK_MALE = register("latex_shark_male", 0x969696, 0xFFFFFF,
EntityType.Builder.of(BuffLatexSharkMale::new, MobCategory.MONSTER).clientTrackingRange(10).sized(0.8F, 2.1F),
ChangedEntities::oceanSpawning, ChangedEntities::overworldOnly, SpawnPlacements.Type.IN_WATER);
public static final RegistryObject<EntityType<LatexSharkFemale>> LATEX_SHARK_FEMALE = register("latex_shark_female", 0x969696, 0xFFFFFF,
EntityType.Builder.of(LatexSharkFemale::new, MobCategory.MONSTER).clientTrackingRange(10).sized(0.8F, 2.45F),
public static final RegistryObject<EntityType<BuffLatexSharkFemale>> LATEX_SHARK_FEMALE = register("latex_shark_female", 0x969696, 0xFFFFFF,
EntityType.Builder.of(BuffLatexSharkFemale::new, MobCategory.MONSTER).clientTrackingRange(10).sized(0.8F, 2.1F),
ChangedEntities::oceanSpawning, ChangedEntities::overworldOnly, SpawnPlacements.Type.IN_WATER);
public static final RegistryObject<EntityType<SniperDog>> SNIPER_DOG = registerReducedSpawn("sniper_dog", 0xEF8F44, 0x894633,
EntityType.Builder.of(SniperDog::new, MobCategory.MONSTER).clientTrackingRange(10).sized(0.7F, 1.93F),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ public static void registerEntityRenderers(EntityRenderersEvent.RegisterRenderer
registerHumanoid(event, ChangedEntities.LATEX_RED_DRAGON.get(), LatexRedDragonRenderer::new);
registerHumanoid(event, ChangedEntities.LATEX_RED_PANDA.get(), LatexRedPandaRenderer::new);
registerHumanoid(event, ChangedEntities.LATEX_SHARK.get(), LatexSharkRenderer::new);
registerHumanoid(event, ChangedEntities.LATEX_SHARK_FEMALE.get(),
/*useNewModels ? LatexSharkFemaleRenderer.Remodel::new :*/ LatexSharkFemaleRenderer::new);
registerHumanoid(event, ChangedEntities.LATEX_SHARK_FEMALE.get(), BuffLatexSharkFemaleRenderer::new);
registerHumanoid(event, ChangedEntities.LATEX_SHARK_MALE.get(), BuffLatexSharkMaleRenderer::new);
registerHumanoid(event, ChangedEntities.LATEX_SIREN.get(), LatexSirenRenderer::new);
registerHumanoid(event, ChangedEntities.LATEX_SNAKE.get(), LatexSnakeRenderer::new);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ public static void registerLayerDefinitions(EntityRenderersEvent.RegisterLayerDe
event.registerLayerDefinition(LatexRedDragonModel.LAYER_LOCATION, LatexRedDragonModel::createBodyLayer);
event.registerLayerDefinition(LatexRedPandaModel.LAYER_LOCATION, LatexRedPandaModel::createBodyLayer);
event.registerLayerDefinition(LatexSharkModel.LAYER_LOCATION, LatexSharkModel::createBodyLayer);
event.registerLayerDefinition(LatexSharkFemaleModel.LAYER_LOCATION,
/*useNewModels ? LatexSharkFemaleModel.Remodel::createBodyLayer :*/ LatexSharkFemaleModel::createBodyLayer);
event.registerLayerDefinition(BuffLatexSharkFemaleModel.LAYER_LOCATION,
/*useNewModels ? LatexSharkFemaleModel.Remodel::createBodyLayer :*/ BuffLatexSharkFemaleModel::createBodyLayer);
event.registerLayerDefinition(BuffLatexSharkMaleModel.LAYER_LOCATION,
/*useNewModels ? LatexSharkMaleModel.Remodel::createBodyLayer :*/ BuffLatexSharkMaleModel::createBodyLayer);
event.registerLayerDefinition(LatexSirenModel.LAYER_LOCATION, LatexSirenModel::createBodyLayer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public class ChangedTransfurVariants {
() -> TransfurVariant.Builder.of(LATEX_SHARK.get(), ChangedEntities.LATEX_SIREN).noLegs().absorbing().addAbility(ChangedAbilities.SIREN_SING));
public static final RegistryObject<TransfurVariant<LatexMermaidShark>> LATEX_MERMAID_SHARK = register("form_latex_mermaid_shark/male",
() -> TransfurVariant.Builder.of(LATEX_SHARK.get(), ChangedEntities.LATEX_MERMAID_SHARK).replicating().noLegs());
public static final RegistryObject<TransfurVariant<LatexSharkFemale>> LATEX_SHARK_FUSION_FEMALE = register("form_latex_shark/female",
public static final RegistryObject<TransfurVariant<BuffLatexSharkFemale>> LATEX_SHARK_FUSION_FEMALE = register("form_latex_shark/female",
() -> TransfurVariant.Builder.of(LATEX_SHARK.get(), ChangedEntities.LATEX_SHARK_FEMALE).stepSize(0.7f).absorbing().fusionOf(LATEX_SHARK.get(), Shark.class));
public static final RegistryObject<TransfurVariant<BuffLatexSharkMale>> LATEX_SHARK_FUSION_MALE = register("form_latex_shark/male",
() -> TransfurVariant.Builder.of(LATEX_SHARK.get(), ChangedEntities.LATEX_SHARK_MALE).stepSize(0.7f).replicating().fusionOf(LATEX_SHARK.get(), Shark.class));
Expand Down Expand Up @@ -172,7 +172,7 @@ public static class Gendered {
public static final GenderedPair<PhageLatexWolfMale, PhageLatexWolfFemale> PHAGE_LATEX_WOLVES = new GenderedPair<>(PHAGE_LATEX_WOLF_MALE, PHAGE_LATEX_WOLF_FEMALE);
public static final GenderedPair<LatexMantaRayMale, LatexMantaRayFemale> LATEX_MANTA_RAYS = new GenderedPair<>(LATEX_MANTA_RAY_MALE, LATEX_MANTA_RAY_FEMALE);
public static final GenderedPair<LatexMermaidShark, LatexSiren> LATEX_MERMAID_SHARKS = new GenderedPair<>(LATEX_MERMAID_SHARK, LATEX_SIREN);
public static final GenderedPair<BuffLatexSharkMale, LatexSharkFemale> LATEX_SHARK_FUSIONS = new GenderedPair<>(LATEX_SHARK_FUSION_MALE, LATEX_SHARK_FUSION_FEMALE);
public static final GenderedPair<BuffLatexSharkMale, BuffLatexSharkFemale> LATEX_SHARK_FUSIONS = new GenderedPair<>(LATEX_SHARK_FUSION_MALE, LATEX_SHARK_FUSION_FEMALE);
public static final GenderedPair<LatexSquidDogMale, LatexSquidDogFemale> LATEX_SQUID_DOGS = new GenderedPair<>(LATEX_SQUID_DOG_MALE, LATEX_SQUID_DOG_FEMALE);
public static final GenderedPair<LatexSnowLeopardMale, LatexSnowLeopardFemale> LATEX_SNOW_LEOPARDS = new GenderedPair<>(LATEX_SNOW_LEOPARD_MALE, LATEX_SNOW_LEOPARD_FEMALE);
public static final GenderedPair<WhiteWolfMale, WhiteWolfFemale> WHITE_WOLVES = new GenderedPair<>(WHITE_WOLF_MALE, WHITE_WOLF_FEMALE);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.

0 comments on commit 13b607a

Please sign in to comment.