MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / computeNext0

Method computeNext0

src/main/java/net/optifine/BlockPosM.java:172–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170 {
171 private BlockPosM theBlockPosM = null;
172 protected BlockPosM computeNext0()
173 {
174 if (this.theBlockPosM == null)
175 {
176 this.theBlockPosM = new BlockPosM(blockpos.getX(), blockpos.getY(), blockpos.getZ(), 3);
177 return this.theBlockPosM;
178 }
179 else if (this.theBlockPosM.equals(blockpos1))
180 {
181 return (BlockPosM)this.endOfData();
182 }
183 else
184 {
185 int i = this.theBlockPosM.getX();
186 int j = this.theBlockPosM.getY();
187 int k = this.theBlockPosM.getZ();
188
189 if (i < blockpos1.getX())
190 {
191 ++i;
192 }
193 else if (j < blockpos1.getY())
194 {
195 i = blockpos.getX();
196 ++j;
197 }
198 else if (k < blockpos1.getZ())
199 {
200 i = blockpos.getX();
201 j = blockpos.getY();
202 ++k;
203 }
204
205 this.theBlockPosM.setXyz(i, j, k);
206 return this.theBlockPosM;
207 }
208 }
209 protected Object computeNext()
210 {
211 return this.computeNext0();

Callers 1

computeNextMethod · 0.95

Calls 6

endOfDataMethod · 0.80
setXyzMethod · 0.80
getXMethod · 0.65
getYMethod · 0.65
getZMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected