-
Notifications
You must be signed in to change notification settings - Fork 33
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
941df0d
commit d6e99e1
Showing
5 changed files
with
21 additions
and
24 deletions.
There are no files selected for viewing
13 changes: 11 additions & 2 deletions
13
common/src/main/java/net/mehvahdjukaar/every_compat/misc/AllWoodItem.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,22 @@ | ||
package net.mehvahdjukaar.every_compat.misc; | ||
|
||
|
||
import net.fabricmc.api.Environment; | ||
import net.mehvahdjukaar.moonlight.api.client.ICustomItemRendererProvider; | ||
import net.mehvahdjukaar.moonlight.api.client.ItemStackRenderer; | ||
import net.minecraft.world.item.Item; | ||
|
||
public class AllWoodItem extends Item { | ||
import java.util.function.Supplier; | ||
|
||
public class AllWoodItem extends Item implements ICustomItemRendererProvider { | ||
|
||
public AllWoodItem() { | ||
super(new Properties()); | ||
} | ||
|
||
|
||
@Environment(net.fabricmc.api.EnvType.CLIENT) | ||
@Override | ||
public Supplier<ItemStackRenderer> getRendererFactory() { | ||
return WoodTypeCycleItemRenderer::new; | ||
} | ||
} |
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: 9 additions & 0 deletions
9
common/src/main/java/net/mehvahdjukaar/every_compat/misc/WoodTypeCycleItemRenderer.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,9 @@ | ||
package net.mehvahdjukaar.every_compat.misc; | ||
|
||
import net.mehvahdjukaar.moonlight.api.set.wood.WoodType; | ||
|
||
public class WoodTypeCycleItemRenderer extends BlockTypeCycleItemRenderer<WoodType> { | ||
public WoodTypeCycleItemRenderer() { | ||
super(WoodType.class); | ||
} | ||
} |
20 changes: 0 additions & 20 deletions
20
common/src/main/java/net/mehvahdjukaar/every_compat/mixins/DumbMixin.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