Skip to content

Commit

Permalink
add white werewolf with blue eyes
Browse files Browse the repository at this point in the history
- textures by Goiaba
  • Loading branch information
Cheaterpaul committed May 14, 2024
1 parent f723229 commit cdcbc30
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public class WerewolfForm {
public static final Codec<WerewolfForm> CODEC = Codec.STRING.xmap(WerewolfForm::getForm, WerewolfForm::getName);
public static final WerewolfForm NONE = new WerewolfForm("none", null, true, false, 0, 0F, true);
public static final WerewolfForm HUMAN = new WerewolfForm("human", null, true, true, 3, 0.05F, true);
public static final WerewolfForm BEAST = new WerewolfForm("beast", WerewolfSize.BEAST, false, true, 8, 0.2F, true);
public static final WerewolfForm BEAST4L = new WerewolfForm("beast4l", WerewolfSize.BEAST, false, true, 8, 0.3F, false);
public static final WerewolfForm SURVIVALIST = new WerewolfForm("survivalist", WerewolfSize.SURVIVAL, false, true, 8, 0.4F, false);
public static final WerewolfForm BEAST = new WerewolfForm("beast", WerewolfSize.BEAST, false, true, 9, 0.2F, true);
public static final WerewolfForm BEAST4L = new WerewolfForm("beast4l", WerewolfSize.BEAST, false, true, 9, 0.3F, false);
public static final WerewolfForm SURVIVALIST = new WerewolfForm("survivalist", WerewolfSize.SURVIVAL, false, true, 9, 0.4F, false);

@Nonnull
private final String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

import com.mojang.blaze3d.vertex.PoseStack;
import de.teamlapen.werewolves.api.entities.werewolf.WerewolfForm;
import de.teamlapen.werewolves.client.gui.WerewolfPlayerAppearanceScreen;
import de.teamlapen.werewolves.client.gui.WerewolfPlayerAppearanceScreen;
import de.teamlapen.werewolves.client.render.player.WerewolfPlayerBeastRenderer;
import de.teamlapen.werewolves.client.render.player.WerewolfPlayerSurvivalistRenderer;
import de.teamlapen.werewolves.entities.player.werewolf.WerewolfPlayer;
import net.minecraft.client.Minecraft;
import net.minecraft.client.Minecraft;
import net.minecraft.client.player.AbstractClientPlayer;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
Expand Down Expand Up @@ -36,9 +40,12 @@ public boolean renderPlayer(AbstractClientPlayer player, float entityYaw, float
}

private boolean render(AbstractClientPlayer player, Function<WerewolfForm, Boolean> renderFunction) {
WerewolfPlayer werewolf = WerewolfPlayer.get(player);
if (werewolf.getForm().isTransformed() && !werewolf.getForm().isHumanLike()) {
return renderFunction.apply(werewolf.getForm());
WerewolfForm form = WerewolfPlayer.get(player).getForm();
if (Minecraft.getInstance().screen instanceof WerewolfPlayerAppearanceScreen screen && screen.isRenderForm()) {
form = screen.getActiveForm();
}
if (form.isTransformed() && !form.isHumanLike()) {
return renderFunction.apply(form);
}
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/teamlapen/werewolves/util/REFERENCE.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class REFERENCE {
public static final int HIGHEST_WEREWOLF_LORD_LEVEL = 5;
public static final ResourceLocation WEREWOLF_PLAYER_KEY = new ResourceLocation(MODID, "werewolf");
public static final ResourceLocation EXTENDED_WEREWOLF_KEY = new ResourceLocation(MODID, "iextendedwerewolf");
public static final int EYE_TYPE_COUNT = 6;
public static final int EYE_TYPE_COUNT = 9;
public static ArtifactVersion VERSION = new DefaultArtifactVersion("0.0.0");

}
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.

0 comments on commit cdcbc30

Please sign in to comment.