added parameter for update as well

This commit is contained in:
Blu 2025-01-16 17:13:54 +01:00
parent 15278e4e8a
commit 2c778ff0ff
2 changed files with 7 additions and 1 deletions

View File

@ -676,6 +676,7 @@ public class InstanceContainer extends Instance {
final Vec neighborPosition = new Vec(neighborX, neighborY, neighborZ);
final Block newNeighborBlock = neighborBlockPlacementRule.blockUpdate(new BlockPlacementRule.UpdateState(
this,
this,
neighborPosition,
neighborBlock,

View File

@ -71,10 +71,15 @@ public abstract class BlockPlacementRule {
}
}
public record UpdateState(@NotNull Block.Getter instance,
public record UpdateState(@NotNull Block.Getter blockGetter,
@NotNull Block.Setter blockSetter,
@NotNull Point blockPosition,
@NotNull Block currentBlock,
@NotNull BlockFace fromFace) {
@Deprecated
public Block.Getter instance() {
return this.blockGetter;
}
}
public record Replacement(