-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update membrane block model & colors
- Loading branch information
1 parent
4712b27
commit c2d9174
Showing
17 changed files
with
40 additions
and
197 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
22 changes: 22 additions & 0 deletions
22
...in/java/com/github/elenterius/biomancy/block/membrane/IgnoreEntityCollisionPredicate.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,22 @@ | ||
package com.github.elenterius.biomancy.block.membrane; | ||
|
||
import com.github.elenterius.biomancy.init.tags.ModEntityTags; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.world.entity.Entity; | ||
import net.minecraft.world.entity.LivingEntity; | ||
import net.minecraft.world.entity.MobType; | ||
import net.minecraft.world.entity.item.ItemEntity; | ||
import net.minecraft.world.level.BlockGetter; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public interface IgnoreEntityCollisionPredicate { | ||
IgnoreEntityCollisionPredicate IS_BABY_MOB = (state, level, pos, entity) -> entity instanceof LivingEntity livingEntity && livingEntity.isBaby(); | ||
IgnoreEntityCollisionPredicate IS_ADULT_MOB = (state, level, pos, entity) -> entity instanceof LivingEntity livingEntity && !livingEntity.isBaby(); | ||
IgnoreEntityCollisionPredicate IS_ALIVE_MOB = (state, level, pos, entity) -> entity instanceof LivingEntity livingEntity && !entity.getType().is(ModEntityTags.FORGE_GOLEMS) && livingEntity.getMobType() != MobType.UNDEAD; | ||
IgnoreEntityCollisionPredicate IS_UNDEAD_MOB = (state, level, pos, entity) -> entity instanceof LivingEntity livingEntity && livingEntity.getMobType() == MobType.UNDEAD; | ||
IgnoreEntityCollisionPredicate IS_ITEM = (state, level, pos, entity) -> entity instanceof ItemEntity; | ||
IgnoreEntityCollisionPredicate NEVER = (state, level, pos, entity) -> false; | ||
|
||
boolean test(BlockState state, BlockGetter level, BlockPos pos, @Nullable Entity entity); | ||
} |
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
146 changes: 0 additions & 146 deletions
146
src/main/resources/assets/biomancy/models/block/template_membrane.json
This file was deleted.
Oops, something went wrong.
Binary file added
BIN
+759 Bytes
src/main/resources/assets/biomancy/textures/block/adult_permeable_membrane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+811 Bytes
...main/resources/assets/biomancy/textures/block/adult_permeable_membrane_side.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+774 Bytes
src/main/resources/assets/biomancy/textures/block/baby_permeable_membrane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+861 Bytes
src/main/resources/assets/biomancy/textures/block/baby_permeable_membrane_side.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-2.91 KB
src/main/resources/assets/biomancy/textures/block/membrane_base.png
Binary file not shown.
Binary file removed
BIN
-3.16 KB
src/main/resources/assets/biomancy/textures/block/membrane_overlay.png
Binary file not shown.
Binary file added
BIN
+732 Bytes
src/main/resources/assets/biomancy/textures/block/primal_permeable_membrane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+790 Bytes
...ain/resources/assets/biomancy/textures/block/primal_permeable_membrane_side.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+782 Bytes
src/main/resources/assets/biomancy/textures/block/undead_permeable_membrane.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+870 Bytes
...ain/resources/assets/biomancy/textures/block/undead_permeable_membrane_side.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.