generated from neoforged/MDK
-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
d5767dc
commit b13eaf6
Showing
19 changed files
with
440 additions
and
10 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
2 changes: 2 additions & 0 deletions
2
src/generated/resources/.cache/c17eb345793fcd65205e8bbdac013e7cb925c209
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,2 @@ | ||
// 1.20.2 2023-11-22T00:19:22.115925 Item Models: bibliocraft | ||
3018c76a3e657cac2cad157f27ccf08a59c0298c assets/bibliocraft/models/item/bookcase.json |
4 changes: 2 additions & 2 deletions
4
src/generated/resources/.cache/c622617f6fabf890a00b9275cd5f643584a8a2c8
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,2 +1,2 @@ | ||
// 1.20.2 2023-11-20T00:28:31.9668292 Languages: en_us | ||
65c47d4769f2f8bb084ac170910d820ce7ce68d0 assets/bibliocraft/lang/en_us.json | ||
// 1.20.2 2023-11-22T00:19:22.1200511 Languages: en_us | ||
9da1efd79dd924566c3065f8004a268d7ceafb32 assets/bibliocraft/lang/en_us.json |
3 changes: 3 additions & 0 deletions
3
src/generated/resources/.cache/f717717babfa6b1b7c79c4126d8b78e2b905cb30
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,3 @@ | ||
// 1.20.2 2023-11-22T01:55:15.7354547 Block States: bibliocraft | ||
99446d42e0f41275c3ef8ddcf75356e8c8b4278a assets/bibliocraft/blockstates/bookcase.json | ||
028b6953729c8c439a526fbaeb1d45c5231ef865 assets/bibliocraft/models/block/oak_bookcase.json |
42 changes: 42 additions & 0 deletions
42
src/generated/resources/assets/bibliocraft/blockstates/bookcase.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,42 @@ | ||
{ | ||
"variants": { | ||
"facing=east,waterlogged=false": { | ||
"model": "bibliocraft:block/oak_bookcase", | ||
"uvlock": true, | ||
"y": 90 | ||
}, | ||
"facing=east,waterlogged=true": { | ||
"model": "bibliocraft:block/oak_bookcase", | ||
"uvlock": true, | ||
"y": 90 | ||
}, | ||
"facing=north,waterlogged=false": { | ||
"model": "bibliocraft:block/oak_bookcase", | ||
"uvlock": true | ||
}, | ||
"facing=north,waterlogged=true": { | ||
"model": "bibliocraft:block/oak_bookcase", | ||
"uvlock": true | ||
}, | ||
"facing=south,waterlogged=false": { | ||
"model": "bibliocraft:block/oak_bookcase", | ||
"uvlock": true, | ||
"y": 180 | ||
}, | ||
"facing=south,waterlogged=true": { | ||
"model": "bibliocraft:block/oak_bookcase", | ||
"uvlock": true, | ||
"y": 180 | ||
}, | ||
"facing=west,waterlogged=false": { | ||
"model": "bibliocraft:block/oak_bookcase", | ||
"uvlock": true, | ||
"y": 270 | ||
}, | ||
"facing=west,waterlogged=true": { | ||
"model": "bibliocraft:block/oak_bookcase", | ||
"uvlock": true, | ||
"y": 270 | ||
} | ||
} | ||
} |
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,4 +1,4 @@ | ||
{ | ||
"block.bibliocraft.bookcase": "bookcase", | ||
"block.bibliocraft.bookcase": "Bookcase", | ||
"container.bibliocraft.bookcase": "Bookcase" | ||
} |
6 changes: 6 additions & 0 deletions
6
src/generated/resources/assets/bibliocraft/models/block/oak_bookcase.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": "bibliocraft:block/bookcase", | ||
"textures": { | ||
"texture": "minecraft:block/oak_planks" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/generated/resources/assets/bibliocraft/models/item/bookcase.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,3 @@ | ||
{ | ||
"parent": "bibliocraft:block/oak_bookcase" | ||
} |
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
34 changes: 34 additions & 0 deletions
34
src/main/java/com/github/minecraftschurlimods/bibliocraft/datagen/BCBlockStateProvider.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,34 @@ | ||
package com.github.minecraftschurlimods.bibliocraft.datagen; | ||
|
||
import com.github.minecraftschurlimods.bibliocraft.Bibliocraft; | ||
import com.github.minecraftschurlimods.bibliocraft.init.BCBlocks; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.level.block.Block; | ||
import net.minecraft.world.level.block.state.properties.BlockStateProperties; | ||
import net.neoforged.neoforge.client.model.generators.BlockStateProvider; | ||
import net.neoforged.neoforge.client.model.generators.ConfiguredModel; | ||
import net.neoforged.neoforge.client.model.generators.ModelFile; | ||
import net.neoforged.neoforge.common.data.ExistingFileHelper; | ||
|
||
import java.util.function.Supplier; | ||
|
||
public class BCBlockStateProvider extends BlockStateProvider { | ||
public BCBlockStateProvider(PackOutput output, ExistingFileHelper exFileHelper) { | ||
super(output, Bibliocraft.MOD_ID, exFileHelper); | ||
} | ||
|
||
@Override | ||
protected void registerStatesAndModels() { | ||
horizontalBlock(BCBlocks.BOOKCASE, "oak_bookcase", modLoc("bookcase"), mcLoc("block/oak_planks")); | ||
} | ||
|
||
private void horizontalBlock(Supplier<? extends Block> block, String name, ResourceLocation parent, ResourceLocation texture) { | ||
ModelFile model = models().withExistingParent(name, parent).texture("texture", texture); | ||
getVariantBuilder(block.get()).forAllStates(state -> ConfiguredModel.builder() | ||
.modelFile(model) | ||
.rotationY(((int) state.getValue(BlockStateProperties.HORIZONTAL_FACING).toYRot() + 180) % 360) | ||
.uvLock(true) | ||
.build()); | ||
} | ||
} |
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
18 changes: 18 additions & 0 deletions
18
src/main/java/com/github/minecraftschurlimods/bibliocraft/datagen/BCItemModelProvider.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,18 @@ | ||
package com.github.minecraftschurlimods.bibliocraft.datagen; | ||
|
||
import com.github.minecraftschurlimods.bibliocraft.Bibliocraft; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.neoforged.neoforge.client.model.generators.ItemModelProvider; | ||
import net.neoforged.neoforge.common.data.ExistingFileHelper; | ||
|
||
public class BCItemModelProvider extends ItemModelProvider { | ||
public BCItemModelProvider(PackOutput output, ExistingFileHelper existingFileHelper) { | ||
super(output, Bibliocraft.MOD_ID, existingFileHelper); | ||
} | ||
|
||
@Override | ||
protected void registerModels() { | ||
withExistingParent("bookcase", new ResourceLocation(Bibliocraft.MOD_ID, "block/oak_bookcase")); | ||
} | ||
} |
5 changes: 2 additions & 3 deletions
5
src/main/java/com/github/minecraftschurlimods/bibliocraft/handler/EventHandler.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,14 +1,13 @@ | ||
package com.github.minecraftschurlimods.bibliocraft.handler; | ||
|
||
import com.github.minecraftschurlimods.bibliocraft.Bibliocraft; | ||
import net.neoforged.fml.common.Mod; | ||
|
||
public final class EventHandler { | ||
/* | ||
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD, modid = Bibliocraft.MOD_ID) | ||
public static final class ModBus { | ||
} | ||
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.FORGE, modid = Bibliocraft.MOD_ID) | ||
public static final class NeoBus { | ||
} | ||
*/ | ||
} |
6 changes: 3 additions & 3 deletions
6
src/main/java/com/github/minecraftschurlimods/bibliocraft/init/BCBlocks.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
Oops, something went wrong.