-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Showing
7 changed files
with
43 additions
and
1 deletion.
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
16 changes: 16 additions & 0 deletions
16
...ain/java/fr/hugman/promenade/entity/decoration/painting/PromenadePaintingVariantKeys.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,16 @@ | ||
package fr.hugman.promenade.entity.decoration.painting; | ||
|
||
import fr.hugman.promenade.Promenade; | ||
import net.minecraft.entity.decoration.painting.PaintingVariant; | ||
import net.minecraft.registry.RegistryKey; | ||
import net.minecraft.registry.RegistryKeys; | ||
|
||
public class PromenadePaintingVariantKeys { | ||
public static final RegistryKey<PaintingVariant> OPTIMISM = of("optimism"); | ||
public static final RegistryKey<PaintingVariant> NURTURE = of("nurture"); | ||
|
||
|
||
private static RegistryKey<PaintingVariant> of(String path) { | ||
return RegistryKey.of(RegistryKeys.PAINTING_VARIANT, Promenade.id(path)); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/fr/hugman/promenade/entity/decoration/painting/PromenadePaintingVariants.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,12 @@ | ||
package fr.hugman.promenade.entity.decoration.painting; | ||
|
||
import net.minecraft.entity.decoration.painting.PaintingVariant; | ||
import net.minecraft.registry.Registries; | ||
import net.minecraft.registry.Registry; | ||
|
||
public class PromenadePaintingVariants { | ||
public static void register() { | ||
Registry.register(Registries.PAINTING_VARIANT, PromenadePaintingVariantKeys.OPTIMISM, new PaintingVariant(32, 32)); | ||
Registry.register(Registries.PAINTING_VARIANT, PromenadePaintingVariantKeys.NURTURE, new PaintingVariant(32, 32)); | ||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions
7
src/main/resources/data/minecraft/tags/painting_variant/placeable.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 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"promenade:optimism", | ||
"promenade:nurture" | ||
] | ||
} |