ChunkListener::onBlockChanged() to accept 3 integers instead of Vector3 #6164
Labels
BC break
Breaks API compatibility
Category: API
Related to the plugin API
Performance
Type: Enhancement
Contributes features or other improvements to PocketMine-MP
Description
Vector3
is both slower and more inconvenient for this purpose.setBlockAt()
currently has to allocate aVector3
for this purpose alone (well, there's alsocreateBlockUpdatePackets()
, but that could be avoided too).Vector3
is inconvenient since it might contain float components, forcing the use ofgetFloorX()
and friends.Since we already use integers for this internally, it probably makes sense to do the same for
onBlockChanged()
too.Alternative methods
The text was updated successfully, but these errors were encountered: