FillerPropScanResult class

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

Файл: com/hypixel/hytale/builtin/hytalegenerator/props/deprecated/filler/FillerPropScanResult.java

implements: ScanResult

Поля (1)

МодификаторыТипИмя
private List<Vector3i> positions

Методы (2)

МодификаторыВозвратСигнатура
abstract throw new IllegalArgumentExceptionthrow new IllegalArgumentException("The provided ScanResult isn't compatible with this prop.")
if if(var1 != null)

Исходный код

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

class="kw">import com.hypixel.hytale.builtin.hytalegenerator.props.deprecated.ScanResult;
class="kw">import java.util.List;
class="kw">import javax.annotation.Nonnull;
class="kw">import javax.annotation.Nullable;
class="kw">import org.joml.Vector3i;

class="kw">public class FillerPropScanResult class="kw">implements ScanResult {
   class="kw">private List<Vector3i> positions;

   class="kw">public FillerPropScanResult(@Nullable List<Vector3i> var1) {
      if (var1 != null) {
         this.positions = var1;
      }
   }

   @Nonnull
   class="kw">public class="kw">static FillerPropScanResult cast(ScanResult var0) {
      if (!(var0 class="kw">instanceof FillerPropScanResult)) {
         throw new IllegalArgumentException("The provided ScanResult isn't compatible with this prop.");
      } else {
         class="kw">return (FillerPropScanResult)var0;
      }
   }

   @Nullable
   class="kw">public List<Vector3i> getFluidBlocks() {
      class="kw">return this.positions;
   }

   @Override
   class="kw">public boolean isNegative() {
      class="kw">return this.positions == null || this.positions.isEmpty();
   }
}