-
Notifications
You must be signed in to change notification settings - Fork 11
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
8496211
commit bfa35a4
Showing
8 changed files
with
289 additions
and
36 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
224 changes: 189 additions & 35 deletions
224
...alesque/redux/blockset/AetherWoodSet.java → ...que/redux/blockset/BaseAetherWoodSet.java
Large diffs are not rendered by default.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
src/main/java/net/zepalesque/redux/data/gen/ReduxItemModelGen.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,19 @@ | ||
package net.zepalesque.redux.data.gen; | ||
|
||
import net.minecraft.data.PackOutput; | ||
import net.neoforged.neoforge.common.data.ExistingFileHelper; | ||
import net.zepalesque.redux.Redux; | ||
import net.zepalesque.redux.block.ReduxBlocks; | ||
import net.zepalesque.redux.data.prov.ReduxItemModelProvider; | ||
|
||
public class ReduxItemModelGen extends ReduxItemModelProvider { | ||
|
||
public ReduxItemModelGen(PackOutput output, ExistingFileHelper helper) { | ||
super(output, Redux.MODID, helper); | ||
} | ||
|
||
@Override | ||
protected void registerModels() { | ||
itemBlockFlatCustomTexture(ReduxBlocks.SHORT_AETHER_GRASS, "natural/aether_medium_grass"); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/net/zepalesque/redux/data/gen/ReduxLanguageGen.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,17 @@ | ||
package net.zepalesque.redux.data.gen; | ||
|
||
import net.minecraft.data.PackOutput; | ||
import net.zepalesque.redux.Redux; | ||
import net.zepalesque.redux.data.prov.ReduxLanguageProvider; | ||
|
||
public class ReduxLanguageGen extends ReduxLanguageProvider { | ||
|
||
public ReduxLanguageGen(PackOutput output) { | ||
super(output, Redux.MODID); | ||
} | ||
|
||
@Override | ||
protected void addTranslations() { | ||
|
||
} | ||
} |
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
26 changes: 26 additions & 0 deletions
26
src/main/java/net/zepalesque/redux/data/prov/ReduxItemModelProvider.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,26 @@ | ||
package net.zepalesque.redux.data.prov; | ||
|
||
import com.aetherteam.aether.data.providers.AetherItemModelProvider; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.world.level.block.Block; | ||
import net.neoforged.neoforge.client.model.generators.ItemModelBuilder; | ||
import net.neoforged.neoforge.common.data.ExistingFileHelper; | ||
|
||
import java.util.function.Supplier; | ||
|
||
public abstract class ReduxItemModelProvider extends AetherItemModelProvider { | ||
|
||
public ReduxItemModelProvider(PackOutput output, String id, ExistingFileHelper helper) { | ||
super(output, id, helper); | ||
} | ||
|
||
public ItemModelBuilder itemBlockFlat(Supplier<? extends Block> block, String location) { | ||
return withExistingParent(blockName(block.get()), mcLoc("item/generated")) | ||
.texture("layer0", texture(blockName(block.get()), location)); | ||
} | ||
|
||
public ItemModelBuilder itemBlockFlatCustomTexture(Supplier<? extends Block> block, String locationPlusName) { | ||
return withExistingParent(blockName(block.get()), mcLoc("item/generated")) | ||
.texture("layer0", texture(locationPlusName)); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/main/java/net/zepalesque/redux/data/prov/ReduxLanguageProvider.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,30 @@ | ||
package net.zepalesque.redux.data.prov; | ||
|
||
import com.aetherteam.aether.data.providers.AetherLanguageProvider; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.world.entity.Entity; | ||
import net.minecraft.world.entity.EntityType; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.level.block.Block; | ||
import net.neoforged.neoforge.registries.DeferredBlock; | ||
import net.neoforged.neoforge.registries.DeferredHolder; | ||
import net.neoforged.neoforge.registries.DeferredItem; | ||
import net.zepalesque.zenith.util.DatagenUtil; | ||
|
||
public abstract class ReduxLanguageProvider extends AetherLanguageProvider { | ||
public ReduxLanguageProvider(PackOutput output, String id) { | ||
super(output, id); | ||
} | ||
|
||
public void add(DeferredItem<? extends Item> key) { | ||
this.addItem(key, DatagenUtil.getNameLocalized(key)); | ||
} | ||
|
||
public void add(DeferredBlock<? extends Block> key) { | ||
this.addBlock(key, DatagenUtil.getNameLocalized(key)); | ||
} | ||
|
||
public void add(DeferredHolder<EntityType<?>, ? extends EntityType<?>> key) { | ||
this.addEntityType(key, DatagenUtil.getNameLocalized(key)); | ||
} | ||
} |