Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateBlockedHoneyCube()

static void Terraria.GameContent.Biomes.HiveBiome.CreateBlockedHoneyCube ( int x,
int y )
inlinestaticprivate

Definition at line 345 of file HiveBiome.cs.

346 {
347 for (int i = x - 1; i <= x + 2; i++)
348 {
349 for (int j = y - 1; j <= y + 2; j++)
350 {
351 if (i >= x && i <= x + 1 && j >= y && j <= y + 1)
352 {
353 Main.tile[i, j].active(active: false);
354 Main.tile[i, j].liquid = byte.MaxValue;
355 Main.tile[i, j].honey(honey: true);
356 }
357 else
358 {
359 Main.tile[i, j].active(active: true);
360 Main.tile[i, j].type = 225;
361 }
362 }
363 }
364 }

References Terraria.Main.tile.

Referenced by Terraria.GameContent.Biomes.HiveBiome.Place().