@@ -92,7 +92,7 @@ public function addCoord(float $x, float $y, float $z) : AxisAlignedBB{
92
92
*
93
93
* @return $this
94
94
*/
95
- public function expandCopy (float $ x , float $ y , float $ z ){
95
+ public function expandedCopy (float $ x , float $ y , float $ z ){
96
96
return new AxisAlignedBB (
97
97
$ this ->minX - $ x ,
98
98
$ this ->minY - $ y ,
@@ -135,7 +135,7 @@ public function offsetTowardsCopy(Facing $face, float $distance) : AxisAlignedBB
135
135
*
136
136
* @return $this
137
137
*/
138
- public function contractCopy (float $ x , float $ y , float $ z ) : AxisAlignedBB {
138
+ public function contractedCopy (float $ x , float $ y , float $ z ) : AxisAlignedBB {
139
139
return new AxisAlignedBB (
140
140
$ this ->minX + $ x ,
141
141
$ this ->minY + $ y ,
@@ -153,7 +153,7 @@ public function contractCopy(float $x, float $y, float $z) : AxisAlignedBB{
153
153
*
154
154
* @return $this
155
155
*/
156
- public function extendCopy (Facing $ face , float $ distance ) : AxisAlignedBB {
156
+ public function extendedCopy (Facing $ face , float $ distance ) : AxisAlignedBB {
157
157
return match ($ face ){
158
158
Facing::DOWN => new AxisAlignedBB ($ this ->minX , $ this ->minY - $ distance , $ this ->minZ , $ this ->maxX , $ this ->maxY , $ this ->maxZ ),
159
159
Facing::UP => new AxisAlignedBB ($ this ->minX , $ this ->minY , $ this ->minZ , $ this ->maxX + $ distance , $ this ->maxY , $ this ->maxZ ),
@@ -166,14 +166,14 @@ public function extendCopy(Facing $face, float $distance) : AxisAlignedBB{
166
166
167
167
/**
168
168
* Inverse of extend().
169
- * @see AxisAlignedBB::extendCopy ()
169
+ * @see AxisAlignedBB::extendedCopy ()
170
170
*
171
171
* @param float $distance Positive values pull the face in, negative values push out.
172
172
*
173
173
* @return $this
174
174
*/
175
- public function trimCopy (Facing $ face , float $ distance ) : AxisAlignedBB {
176
- return $ this ->extendCopy ($ face , -$ distance );
175
+ public function trimedCopy (Facing $ face , float $ distance ) : AxisAlignedBB {
176
+ return $ this ->extendedCopy ($ face , -$ distance );
177
177
}
178
178
179
179
/**
@@ -183,7 +183,7 @@ public function trimCopy(Facing $face, float $distance) : AxisAlignedBB{
183
183
*
184
184
* @return $this
185
185
*/
186
- public function stretchCopy (Axis $ axis , float $ distance ) : AxisAlignedBB {
186
+ public function stretchedCopy (Axis $ axis , float $ distance ) : AxisAlignedBB {
187
187
return match ($ axis ){
188
188
Axis::Y => new AxisAlignedBB ($ this ->minX , $ this ->minY - $ distance , $ this ->minZ , $ this ->maxX , $ this ->maxY + $ distance , $ this ->maxZ ),
189
189
Axis::Z => new AxisAlignedBB ($ this ->minX , $ this ->minY , $ this ->minZ - $ distance , $ this ->maxX , $ this ->maxY , $ this ->maxZ + $ distance ),
@@ -193,12 +193,12 @@ public function stretchCopy(Axis $axis, float $distance) : AxisAlignedBB{
193
193
194
194
/**
195
195
* Reduces the dimension of the AABB on the given axis. Inverse of stretch().
196
- * @see AxisAlignedBB::stretchCopy ()
196
+ * @see AxisAlignedBB::stretchedCopy ()
197
197
*
198
198
* @return $this
199
199
*/
200
- public function squashCopy (Axis $ axis , float $ distance ) : AxisAlignedBB {
201
- return $ this ->stretchCopy ($ axis , -$ distance );
200
+ public function squashedCopy (Axis $ axis , float $ distance ) : AxisAlignedBB {
201
+ return $ this ->stretchedCopy ($ axis , -$ distance );
202
202
}
203
203
204
204
public function calculateXOffset (AxisAlignedBB $ bb , float $ x ) : float {
0 commit comments