Skip to content

Commit

Permalink
deprecate getWorld and add getLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaMode committed Dec 30, 2023
1 parent 533760c commit 41c9aac
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,24 @@ public interface AfterPlace {
void afterPlace(BlockPlaceContext ctx);
}

private final LevelAccessor world;
private final LevelAccessor level;
private final BlockPos pos;
private final BlockState state;
public BlockEvents(LevelAccessor world, BlockPos pos, BlockState state) {
this.pos = pos;
this.world = world;
this.level = world;
this.state = state;
}

public LevelAccessor getLevel()
{
return level;
}

@Deprecated(forRemoval = true)
public LevelAccessor getWorld()
{
return world;
return level;
}

public BlockPos getPos()
Expand Down

0 comments on commit 41c9aac

Please sign in to comment.