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

Method iterator

src/main/java/net/minecraft/util/BlockPos.java:252–295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250 return new Iterable<BlockPos>()
251 {
252 public Iterator<BlockPos> iterator()
253 {
254 return new AbstractIterator<BlockPos>()
255 {
256 private BlockPos lastReturned = null;
257 protected BlockPos computeNext()
258 {
259 if (this.lastReturned == null)
260 {
261 this.lastReturned = blockpos;
262 return this.lastReturned;
263 }
264 else if (this.lastReturned.equals(blockpos1))
265 {
266 return this.endOfData();
267 }
268 else
269 {
270 int i = this.lastReturned.getX();
271 int j = this.lastReturned.getY();
272 int k = this.lastReturned.getZ();
273
274 if (i < blockpos1.getX())
275 {
276 ++i;
277 }
278 else if (j < blockpos1.getY())
279 {
280 i = blockpos.getX();
281 ++j;
282 }
283 else if (k < blockpos1.getZ())
284 {
285 i = blockpos.getX();
286 j = blockpos.getY();
287 ++k;
288 }
289
290 this.lastReturned = new BlockPos(i, j, k);
291 return this.lastReturned;
292 }
293 }
294 };
295 }
296 };
297 }
298

Callers 15

updateDisplayModeMethod · 0.45
registerVariantNamesMethod · 0.45
renderEntitiesMethod · 0.45
updateCloudsMethod · 0.45
updateChunksMethod · 0.45
loadTextureAtlasMethod · 0.45
loadSpriteMethod · 0.45
func_178463_aMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected