-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
15 changed files
with
37 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/de/teamlapen/vampirism/client/core/ModClientFluids.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package de.teamlapen.vampirism.client.core; | ||
|
||
import de.teamlapen.vampirism.client.extensions.FluidExtensions; | ||
import de.teamlapen.vampirism.core.ModFluids; | ||
import net.neoforged.neoforge.client.extensions.common.RegisterClientExtensionsEvent; | ||
|
||
public class ModClientFluids { | ||
|
||
public static void registerClientExtensions(RegisterClientExtensionsEvent event) { | ||
event.registerFluidType(FluidExtensions.BLOOD, ModFluids.BLOOD_TYPE.get()); | ||
event.registerFluidType(FluidExtensions.IMPURE_BLOOD, ModFluids.IMPURE_BLOOD_TYPE.get()); | ||
} | ||
} |
9 changes: 3 additions & 6 deletions
9
src/main/java/de/teamlapen/vampirism/client/core/ModEffects.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
package de.teamlapen.vampirism.client.core; | ||
|
||
import de.teamlapen.vampirism.client.extensions.EffectExtensions; | ||
import de.teamlapen.vampirism.mixin.client.accessor.MobEffectAccessor; | ||
import net.minecraft.world.effect.MobEffects; | ||
import net.neoforged.neoforge.client.extensions.common.RegisterClientExtensionsEvent; | ||
|
||
public class ModEffects { | ||
|
||
public static void modifyNightVisionRenderer() { | ||
MobEffectAccessor effect = (MobEffectAccessor) MobEffects.NIGHT_VISION.value(); | ||
if (effect.getEffectRenderer() == null) { | ||
effect.setEffectRenderer(EffectExtensions.NIGHT_VISION); | ||
} | ||
public static void registerClientExtensions(RegisterClientExtensionsEvent event) { | ||
event.registerMobEffect(EffectExtensions.NIGHT_VISION, MobEffects.NIGHT_VISION.value()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
src/main/java/de/teamlapen/vampirism/items/ColoredVampireClothingItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
src/main/java/de/teamlapen/vampirism/items/MotherTrophyItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
package de.teamlapen.vampirism.items; | ||
|
||
import de.teamlapen.vampirism.client.extensions.ItemExtensions; | ||
import net.minecraft.world.item.BlockItem; | ||
import net.minecraft.world.level.block.Block; | ||
import net.neoforged.neoforge.client.extensions.common.IClientItemExtensions; | ||
|
||
import java.util.function.Consumer; | ||
|
||
public class MotherTrophyItem extends BlockItem { | ||
|
||
public MotherTrophyItem(Block pBlock, Properties pProperties) { | ||
super(pBlock, pProperties); | ||
} | ||
|
||
@Override | ||
public void initializeClient(Consumer<IClientItemExtensions> consumer) { | ||
consumer.accept(ItemExtensions.MOTHER_TROPHY); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
src/main/java/de/teamlapen/vampirism/mixin/client/accessor/MobEffectAccessor.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters