-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into feature/mother_generation
# Conflicts: # src/generated/resources/data/vampirism/vampirism/tasks/hunter_minion_equipment.json # src/generated/resources/data/vampirism/vampirism/tasks/vampire_minion_binding.json # src/main/java/de/teamlapen/vampirism/client/core/ModBlocksRender.java # src/main/java/de/teamlapen/vampirism/core/ModBlocks.java # src/main/java/de/teamlapen/vampirism/core/ModTiles.java # src/main/java/de/teamlapen/vampirism/data/BlockStateGenerator.java # src/main/java/de/teamlapen/vampirism/data/ItemModelGenerator.java # src/main/java/de/teamlapen/vampirism/data/LootTablesGenerator.java # src/main/java/de/teamlapen/vampirism/data/TagGenerator.java # src/main/java/de/teamlapen/vampirism/misc/VampirismCreativeTab.java # src/main/resources/assets/vampirism/lang/en_us.json
- Loading branch information
Showing
432 changed files
with
6,671 additions
and
8,207 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
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
27 changes: 11 additions & 16 deletions
27
src/api/java/de/teamlapen/vampirism/api/settings/Supporter.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,25 +1,20 @@ | ||
package de.teamlapen.vampirism.api.settings; | ||
|
||
import de.teamlapen.vampirism.api.VReference; | ||
import net.minecraft.resources.ResourceLocation; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.Collection; | ||
import java.util.List; | ||
import java.util.stream.Collectors; | ||
import java.util.stream.Stream; | ||
import java.util.Map; | ||
|
||
public record Supporter(@NotNull ResourceLocation faction, @NotNull String name, @NotNull String texture, int typeId, @Nullable String bookId) { | ||
/** | ||
* Supporter information for advanced hunters / vampires | ||
* | ||
* @param faction faction for this supporter | ||
* @param name display name that will be shown in game | ||
* @param texture minecraft username to download the skin | ||
* @param bookId if set it will be used to drop a specific book on loot drops | ||
* @param appearance appearance options for the renderer | ||
*/ | ||
public record Supporter(@NotNull ResourceLocation faction, @NotNull String name, @NotNull String texture, @Nullable String bookId, @NotNull Map<String, String> appearance) { | ||
|
||
public record Old(@NotNull String name, String texture, int type, int status) { | ||
public Supporter toNew(ResourceLocation faction) { | ||
return new Supporter(faction, name, texture, type, null); | ||
} | ||
} | ||
public record OldList(@NotNull String comment, @NotNull List<Old> vampires, @NotNull List<Old> hunters) { | ||
public Collection<Supporter> toNew() { | ||
return Stream.concat(vampires.stream().map(s -> s.toNew(VReference.VAMPIRE_FACTION.getID())), hunters.stream().map(s -> s.toNew(VReference.HUNTER_FACTION.getID()))).collect(Collectors.toList()); | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
src/generated/resources/assets/vampirism/blockstates/bat_cage.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,34 @@ | ||
{ | ||
"variants": { | ||
"contains_bat=false,facing=east": { | ||
"model": "vampirism:block/bat_cage/block", | ||
"y": 90 | ||
}, | ||
"contains_bat=false,facing=north": { | ||
"model": "vampirism:block/bat_cage/block" | ||
}, | ||
"contains_bat=false,facing=south": { | ||
"model": "vampirism:block/bat_cage/block", | ||
"y": 180 | ||
}, | ||
"contains_bat=false,facing=west": { | ||
"model": "vampirism:block/bat_cage/block", | ||
"y": 270 | ||
}, | ||
"contains_bat=true,facing=east": { | ||
"model": "vampirism:block/bat_cage/block", | ||
"y": 90 | ||
}, | ||
"contains_bat=true,facing=north": { | ||
"model": "vampirism:block/bat_cage/block" | ||
}, | ||
"contains_bat=true,facing=south": { | ||
"model": "vampirism:block/bat_cage/block", | ||
"y": 180 | ||
}, | ||
"contains_bat=true,facing=west": { | ||
"model": "vampirism:block/bat_cage/block", | ||
"y": 270 | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/generated/resources/assets/vampirism/blockstates/bloody_dark_stone_bricks.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,7 @@ | ||
{ | ||
"variants": { | ||
"": { | ||
"model": "vampirism:block/bloody_dark_stone_bricks" | ||
} | ||
} | ||
} |
7 changes: 0 additions & 7 deletions
7
src/generated/resources/assets/vampirism/blockstates/castle_block_dark_brick.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/generated/resources/assets/vampirism/blockstates/castle_block_dark_brick_bloody.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/generated/resources/assets/vampirism/blockstates/castle_block_dark_brick_cracked.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/generated/resources/assets/vampirism/blockstates/castle_block_dark_stone.json
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/generated/resources/assets/vampirism/blockstates/castle_block_normal_brick.json
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/generated/resources/assets/vampirism/blockstates/castle_slab_dark_brick.json
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/generated/resources/assets/vampirism/blockstates/castle_slab_dark_stone.json
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
src/generated/resources/assets/vampirism/blockstates/chiseled_dark_stone_bricks.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,7 @@ | ||
{ | ||
"variants": { | ||
"": { | ||
"model": "vampirism:block/chiseled_dark_stone_bricks" | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/generated/resources/assets/vampirism/blockstates/cobbled_dark_stone.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,7 @@ | ||
{ | ||
"variants": { | ||
"": { | ||
"model": "vampirism:block/cobbled_dark_stone" | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/generated/resources/assets/vampirism/blockstates/cobbled_dark_stone_slab.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,13 @@ | ||
{ | ||
"variants": { | ||
"type=bottom": { | ||
"model": "vampirism:block/cobbled_dark_stone_slab" | ||
}, | ||
"type=double": { | ||
"model": "vampirism:block/cobbled_dark_stone" | ||
}, | ||
"type=top": { | ||
"model": "vampirism:block/cobbled_dark_stone_slab_top" | ||
} | ||
} | ||
} |
Oops, something went wrong.