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

Method addTileEntities

src/main/java/net/minecraft/world/World.java:1820–1838  ·  view source on GitHub ↗
(Collection<TileEntity> tileEntityCollection)

Source from the content-addressed store, hash-verified

1818 }
1819
1820 public void addTileEntities(Collection<TileEntity> tileEntityCollection)
1821 {
1822 if (this.processingLoadedTiles)
1823 {
1824 this.addedTileEntityList.addAll(tileEntityCollection);
1825 }
1826 else
1827 {
1828 for (TileEntity tileentity : tileEntityCollection)
1829 {
1830 this.loadedTileEntityList.add(tileentity);
1831
1832 if (tileentity instanceof ITickable)
1833 {
1834 this.tickableTileEntities.add(tileentity);
1835 }
1836 }
1837 }
1838 }
1839
1840 /**
1841 * Will update the entity in the world if the chunk the entity is in is currently loaded. Args: entity

Callers 1

onChunkLoadMethod · 0.80

Calls 2

addAllMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected