-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73ed5a5
commit 1487f5f
Showing
32 changed files
with
281 additions
and
134 deletions.
There are no files selected for viewing
5 changes: 1 addition & 4 deletions
5
common/src/generated/resources/assets/blissful/models/item/joint.json
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,6 +1,3 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "blissful:item/joint" | ||
} | ||
"parent": "minecraft:builtin/entity" | ||
} |
6 changes: 6 additions & 0 deletions
6
common/src/generated/resources/assets/blissful/models/item/joint_flat.json
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,6 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "blissful:item/joint" | ||
} | ||
} |
29 changes: 0 additions & 29 deletions
29
common/src/main/java/galena/blissful/client/JointRenderer.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
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,12 +1,18 @@ | ||
package galena.blissful.index; | ||
|
||
import galena.blissful.BlissfulConstants; | ||
import net.minecraft.core.registries.Registries; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.tags.TagKey; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.level.block.Block; | ||
|
||
public class BlissfulTags { | ||
|
||
public static final TagKey<Block> SUMMER_CROPS = TagKey.create(Registries.BLOCK, new ResourceLocation("sereneseasons", "summer_crops")); | ||
|
||
public static final TagKey<Item> NAUSEATING = TagKey.create(Registries.ITEM, new ResourceLocation(BlissfulConstants.MOD_ID, "nauseating")); | ||
|
||
public static final TagKey<Item> ATTACHED_TO_HEAD = TagKey.create(Registries.ITEM, new ResourceLocation(BlissfulConstants.MOD_ID, "attached_to_head")); | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
common/src/main/java/galena/blissful/mixins/PlayerItemInHandLayerMixin.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,25 @@ | ||
package galena.blissful.mixins; | ||
|
||
import galena.blissful.index.BlissfuItems; | ||
import net.minecraft.client.renderer.entity.layers.PlayerItemInHandLayer; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.item.ItemStack; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Redirect; | ||
|
||
@Mixin(PlayerItemInHandLayer.class) | ||
public class PlayerItemInHandLayerMixin { | ||
|
||
@Redirect( | ||
method = "renderArmWithItem", | ||
at = @At( | ||
value = "INVOKE", | ||
target = "Lnet/minecraft/world/item/ItemStack;is(Lnet/minecraft/world/item/Item;)Z" | ||
) | ||
) | ||
public boolean isUsingJoint(ItemStack instance, Item item) { | ||
return BlissfuItems.JOINT.isIn(instance) || instance.is(item); | ||
} | ||
|
||
} |
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
7 changes: 4 additions & 3 deletions
7
common/src/main/java/galena/blissful/platform/services/IPlatformHelper.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,13 +1,14 @@ | ||
package galena.blissful.platform.services; | ||
|
||
import com.tterrag.registrate.AbstractRegistrate; | ||
import galena.blissful.world.item.JointItem; | ||
import net.minecraft.world.item.Item; | ||
|
||
import java.util.function.Consumer; | ||
|
||
public interface IPlatformHelper { | ||
|
||
AbstractRegistrate<?> getRegistrate(); | ||
|
||
void registerItemRenderer(Item item, Consumer<Object> consumer); | ||
default JointItem createJointItem(Item.Properties properties) { | ||
return new JointItem(properties); | ||
} | ||
} |
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
1 change: 1 addition & 0 deletions
1
common/src/main/resources/assets/blissful/models/item/joint_in_hand.bbmodel
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 @@ | ||
{"meta":{"format_version":"4.5","model_format":"java_block","box_uv":true},"name":"joint_in_hand","parent":"","ambientocclusion":true,"front_gui_light":false,"visible_box":[1,1,0],"variable_placeholders":"","variable_placeholder_buttons":[],"unhandled_root_fields":{},"resolution":{"width":64,"height":64},"elements":[{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,6,4],"to":[9,8,12],"autouv":0,"color":5,"origin":[8,7,8],"faces":{"north":{"uv":[4,0,6,2],"rotation":180,"texture":0},"east":{"uv":[0,2,2,10],"rotation":270,"texture":0},"south":{"uv":[2,0,4,2],"rotation":180,"texture":0},"west":{"uv":[4,2,6,10],"rotation":90,"texture":0},"up":{"uv":[4,2,2,10],"rotation":180,"texture":0},"down":{"uv":[4,2,2,10],"texture":0}},"type":"cube","uuid":"3b627823-ebf5-1080-a94f-799a9d8426b7"}],"outliner":["3b627823-ebf5-1080-a94f-799a9d8426b7"],"textures":[{"path":"D:\\repos\\Minecraft\\Blissful\\common\\src\\main\\resources\\assets\\blissful\\textures\\item\\joint_in_hand.png","name":"joint_in_hand.png","folder":"item","namespace":"blissful","id":"texture","particle":true,"render_mode":"default","render_sides":"auto","frame_time":1,"frame_order_type":"loop","frame_order":"","frame_interpolate":false,"visible":true,"mode":"bitmap","saved":true,"uuid":"e78fa5f9-a8fd-2f43-6a37-70833c41d6b2","relative_path":"../../../textures/item/joint_in_hand.png","source":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAaVJREFUeF7tlr0vQ2EchX93MfhoImnaCiI0hiYSlUgawu4PECOTpZPFyOAfYGExsRFmYpEgoSFR0x2kDIhWmkjqY7BcuW+R2M583tOleduznOc8b28D+3ltLExHyUSr7V9cuk92jsLg9zvm97+SMYChvpStHxxboqvFNrdu/ACwuzwbZTrb3chRsteC+oNVX9/dud74tOLaHjWIIAaQHsy5wiPZHruuPFrtNvQHwMlqMcoXxv5d83Lp3J1jE2ZWtrkNWFocjyYnmgZkB9JWuavZ6VnTgOrLB/1vQTA/NxxNFUZd4Y5us7cns8PSlTs3nr/onwaB9wZ4DyC+AplUm1M+35+z8n3o7r43V4D5Xx7SjfoRJwAAARkAQKKOyADqeYFyMgCARB2RAdTzAuVkAACJOiIDqOcFyskAABJ1RAZQzwuUkwEAJOqIDKCeFygnAwBI1BEZQD0vUE4GAJCoIzKAel6gnAwAIFFHZAD1vEA5GQBAoo7IAOp5gXIyAIBEHZEB1PMC5WQAAIk6IgOo5wXKyQAAEnVEBlDPC5STAQAk6oj3BnwDPk5yQYirNyUAAAAASUVORK5CYII="}]} |
Oops, something went wrong.