mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-05 23:11:36 +01:00
added parameter for update as well
This commit is contained in:
parent
15278e4e8a
commit
2c778ff0ff
@ -676,6 +676,7 @@ public class InstanceContainer extends Instance {
|
|||||||
|
|
||||||
final Vec neighborPosition = new Vec(neighborX, neighborY, neighborZ);
|
final Vec neighborPosition = new Vec(neighborX, neighborY, neighborZ);
|
||||||
final Block newNeighborBlock = neighborBlockPlacementRule.blockUpdate(new BlockPlacementRule.UpdateState(
|
final Block newNeighborBlock = neighborBlockPlacementRule.blockUpdate(new BlockPlacementRule.UpdateState(
|
||||||
|
this,
|
||||||
this,
|
this,
|
||||||
neighborPosition,
|
neighborPosition,
|
||||||
neighborBlock,
|
neighborBlock,
|
||||||
|
@ -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 Point blockPosition,
|
||||||
@NotNull Block currentBlock,
|
@NotNull Block currentBlock,
|
||||||
@NotNull BlockFace fromFace) {
|
@NotNull BlockFace fromFace) {
|
||||||
|
@Deprecated
|
||||||
|
public Block.Getter instance() {
|
||||||
|
return this.blockGetter;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public record Replacement(
|
public record Replacement(
|
||||||
|
Loading…
Reference in New Issue
Block a user