Skip to content

Commit

Permalink
Tweaks from 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Mechalopa committed Jan 19, 2025
1 parent 2ae51f4 commit 651a023
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/github/mechalopa/jafohana/ModEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ public static void onWandererTrades(WandererTradesEvent event)
genericTrades.add(new BasicItemListing(1, new ItemStack(ModItems.CRIMSON_CLOVER.get()), 12, 1, 0.05F));
genericTrades.add(new BasicItemListing(1, new ItemStack(ModItems.MAGENTA_SPOTTED_BELLFLOWER.get()), 12, 1, 0.05F));
genericTrades.add(new BasicItemListing(1, new ItemStack(ModItems.WHITE_SPOTTED_BELLFLOWER.get()), 12, 1, 0.05F));
genericTrades.add(new BasicItemListing(3, new ItemStack(ModItems.WHEEL_LILY.get()), 12, 1, 0.05F));
genericTrades.add(new BasicItemListing(3, new ItemStack(ModItems.RED_SPIDER_LILY.get()), 12, 1, 0.05F));
genericTrades.add(new BasicItemListing(3, new ItemStack(ModItems.BELLS_OF_IRELAND.get()), 12, 1, 0.05F));
genericTrades.add(new BasicItemListing(1, new ItemStack(ModItems.WHEEL_LILY.get()), 12, 1, 0.05F));
genericTrades.add(new BasicItemListing(1, new ItemStack(ModItems.RED_SPIDER_LILY.get()), 12, 1, 0.05F));
genericTrades.add(new BasicItemListing(1, new ItemStack(ModItems.BELLS_OF_IRELAND.get()), 12, 1, 0.05F));
genericTrades.add(new BasicItemListing(3, new ItemStack(ModItems.JADE_VINE.get(), 2), 5, 1, 0.05F));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public boolean isValidBonemealTarget(LevelReader levelReader, BlockPos pos, Bloc
}
else
{
Optional<BlockPos> optional = this.getHeadPos(levelReader, pos, state.getBlock());
Optional<BlockPos> optional = this.getHeadPos(levelReader, pos);
return optional.isPresent() && this.canGrowInto(levelReader.getBlockState(optional.get().relative(Direction.DOWN)));
}
}
Expand All @@ -149,7 +149,7 @@ public void performBonemeal(ServerLevel serverLevel, RandomSource random, BlockP
}
else
{
Optional<BlockPos> optional = this.getHeadPos(serverLevel, pos, state.getBlock());
Optional<BlockPos> optional = this.getHeadPos(serverLevel, pos);

if (optional.isPresent())
{
Expand All @@ -164,7 +164,7 @@ protected boolean canGrowInto(BlockState state)
return state.isAir();
}

private Optional<BlockPos> getHeadPos(BlockGetter getter, BlockPos pos, Block p_153325_)
private Optional<BlockPos> getHeadPos(BlockGetter getter, BlockPos pos)
{
BlockPos.MutableBlockPos blockpos$mutableblockpos = pos.mutable();
BlockState blockstate;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"parent": "jafohana:block/medium_flower_height_20",
"parent": "jafohana:block/cross_height_20",
"textures": {
"particle": "jafohana:block/bells_of_ireland",
"cross": "jafohana:block/bells_of_ireland",
"stem": "jafohana:block/bells_of_ireland_stem"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"ambientocclusion": false,
"render_type": "cutout",
"textures": {
"particle": "#cross"
},
"elements": [
{
"from": [ 0.8, 0, 8 ],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"ambientocclusion": false,
"render_type": "cutout",
"textures": {
"particle": "#cross"
},
"elements": [
{
"from": [ 0.8, 0, 8 ],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"parent": "jafohana:block/medium_flower_height_18",
"parent": "jafohana:block/cross_height_18",
"textures": {
"particle": "jafohana:block/wheel_lily",
"cross": "jafohana:block/wheel_lily",
"stem": "jafohana:block/wheel_lily_stem"
}
Expand Down

0 comments on commit 651a023

Please sign in to comment.