Skip to content

Commit

Permalink
Update for 23w16a.
Browse files Browse the repository at this point in the history
- Updated Material.WOOD to Material.GENERIC for 23w16a
  • Loading branch information
gniftygnome committed Apr 20, 2023
1 parent e5be5c3 commit e055291
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ org.gradle.jvmargs=-Xmx2G
fabric.loom.multiProjectOptimisation=true

maven_group=com.terraformersmc.terraform-api
version=7.0.0-alpha.2
version=7.0.0-alpha.3

minecraft_version=23w14a
yarn_mappings=23w14a+build.6
minecraft_version=23w16a
yarn_mappings=23w16a+build.4
loader_version=0.14.19
fabric_version=0.78.0+1.20
fabric_version=0.78.1+1.20

mixin_extras_version=0.2.0-beta.5
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public BareSmallLogBlock(Supplier<Block> stripped, Block.Settings settings) {
public static BareSmallLogBlock of(MapColor color) {
return new BareSmallLogBlock(
Block.Settings.of(
Material.WOOD,
Material.GENERIC,
color
).strength(2.0F).sounds(BlockSoundGroup.WOOD)
);
Expand All @@ -123,7 +123,7 @@ public static BareSmallLogBlock of(MapColor color) {
public static BareSmallLogBlock of(MapColor wood, MapColor bark) {
return new BareSmallLogBlock(
Block.Settings.of(
Material.WOOD,
Material.GENERIC,
(state) -> state.get(UP) ? wood : bark
).strength(2.0F).sounds(BlockSoundGroup.WOOD)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class PillarLogHelper {
public static PillarBlock of(MapColor color) {
return new PillarBlock(
Block.Settings.of(
Material.WOOD,
Material.GENERIC,
color
).strength(2.0F).sounds(BlockSoundGroup.WOOD)
);
Expand All @@ -33,7 +33,7 @@ public static PillarBlock of(MapColor color) {
public static PillarBlock of(MapColor wood, MapColor bark) {
return new PillarBlock(
Block.Settings.of(
Material.WOOD,
Material.GENERIC,
(state) -> Direction.Axis.Y.equals(state.get(PillarBlock.AXIS)) ? wood : bark
).strength(2.0F).sounds(BlockSoundGroup.WOOD)
);
Expand All @@ -49,7 +49,7 @@ public static PillarBlock of(MapColor wood, MapColor bark) {
public static PillarBlock ofNether(MapColor color) {
return new PillarBlock(
Block.Settings.of(
Material.WOOD,
Material.GENERIC,
color
).strength(2.0F).sounds(BlockSoundGroup.NETHER_STEM)
);
Expand All @@ -66,7 +66,7 @@ public static PillarBlock ofNether(MapColor color) {
public static PillarBlock ofNether(MapColor wood, MapColor bark) {
return new PillarBlock(
Block.Settings.of(
Material.WOOD,
Material.GENERIC,
(state) -> Direction.Axis.Y.equals(state.get(PillarBlock.AXIS)) ? wood : bark
).strength(2.0F).sounds(BlockSoundGroup.NETHER_STEM)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public QuarterLogBlock(Supplier<Block> stripped, MapColor color, Block.Settings
public static QuarterLogBlock of(MapColor color) {
return new QuarterLogBlock(
Block.Settings.of(
Material.WOOD,
Material.GENERIC,
color
).strength(2.0F).sounds(BlockSoundGroup.WOOD)
);
Expand All @@ -78,7 +78,7 @@ public static QuarterLogBlock of(MapColor color) {
public static QuarterLogBlock of(MapColor wood, MapColor bark) {
return new QuarterLogBlock(
Block.Settings.of(
Material.WOOD,
Material.GENERIC,
(state) ->
switch (state.get(PillarBlock.AXIS)) {
case Y -> wood;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public SmallLogBlock(Block leaves, Supplier<Block> stripped, Settings settings)
public static SmallLogBlock of(Block leaves, MapColor color) {
return new SmallLogBlock(leaves,
Block.Settings.of(
Material.WOOD,
Material.GENERIC,
(state) -> state.get(HAS_LEAVES) ? leaves.getDefaultMapColor() : color
).strength(2.0F).sounds(BlockSoundGroup.WOOD)
);
Expand All @@ -108,7 +108,7 @@ public static SmallLogBlock of(Block leaves, MapColor color) {
public static SmallLogBlock of(Block leaves, MapColor wood, MapColor bark) {
return new SmallLogBlock(leaves,
Block.Settings.of(
Material.WOOD,
Material.GENERIC,
(state) -> state.get(HAS_LEAVES) ? leaves.getDefaultMapColor() :
state.get(UP) ? wood : bark
).strength(2.0F).sounds(BlockSoundGroup.WOOD)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public StrippableLogBlock(Supplier<Block> stripped, MapColor top, Settings setti
public static PillarBlock of(MapColor color) {
return new PillarBlock(
Block.Settings.of(
Material.WOOD,
Material.GENERIC,
color
).strength(2.0F).sounds(BlockSoundGroup.WOOD)
);
Expand All @@ -69,7 +69,7 @@ public static PillarBlock of(MapColor color) {
public static PillarBlock of(MapColor wood, MapColor bark) {
return new PillarBlock(
Block.Settings.of(
Material.WOOD,
Material.GENERIC,
(state) -> Direction.Axis.Y.equals(state.get(PillarBlock.AXIS)) ? wood : bark
).strength(2.0F).sounds(BlockSoundGroup.WOOD)
);
Expand Down

0 comments on commit e055291

Please sign in to comment.