QueueProp class

Пакет: com.hypixel.hytale.builtin.hytalegenerator.props

Файл: com/hypixel/hytale/builtin/hytalegenerator/props/QueueProp.java

extends: Prop

Поля (1)

МодификаторыТипИмя
boolean var4

Методы (3)

МодификаторыВозвратСигнатура
for for(Prop var3 : var1)
for for(Prop var3 : this.props)
if if(var4)

Исходный код

Показать/скрыть
class="kw">package com.hypixel.hytale.builtin.hytalegenerator.props;

class="kw">import com.hypixel.hytale.builtin.hytalegenerator.bounds.Bounds3i;
class="kw">import java.util.ArrayList;
class="kw">import java.util.List;
class="kw">import javax.annotation.Nonnull;

class="kw">public class QueueProp class="kw">extends Prop {
   @Nonnull
   class="kw">private class="kw">final List<Prop> props;
   @Nonnull
   class="kw">private class="kw">final Bounds3i readBounds_voxelGrid;
   @Nonnull
   class="kw">private class="kw">final Bounds3i writeBounds_voxelGrid;

   class="kw">public QueueProp(@Nonnull List<Prop> var1) {
      if (var1.isEmpty()) {
         this.props = List.of();
         this.readBounds_voxelGrid = new Bounds3i();
         this.writeBounds_voxelGrid = new Bounds3i();
      } else {
         this.props = new ArrayList<>(var1);
         this.readBounds_voxelGrid = new Bounds3i();
         this.writeBounds_voxelGrid = new Bounds3i();

         for (Prop var3 : var1) {
            this.readBounds_voxelGrid.encompass(var3.getReadBounds_voxelGrid());
            this.writeBounds_voxelGrid.encompass(var3.getWriteBounds_voxelGrid());
         }
      }
   }

   @Override
   class="kw">public boolean generate(@Nonnull Prop.Context var1) {
      for (Prop var3 : this.props) {
         boolean var4 = var3.generate(var1);
         if (var4) {
            class="kw">return true;
         }
      }

      class="kw">return false;
   }

   @Nonnull
   @Override
   class="kw">public Bounds3i getReadBounds_voxelGrid() {
      class="kw">return this.readBounds_voxelGrid;
   }

   @Nonnull
   @Override
   class="kw">public Bounds3i getWriteBounds_voxelGrid() {
      class="kw">return this.writeBounds_voxelGrid;
   }
}