Class MaterialPredicate

java.lang.Object
net.minecraft.util.function.MaterialPredicate
All Implemented Interfaces:
Predicate<BlockState>

public class MaterialPredicate extends Object implements Predicate<BlockState>
Mappings:
Namespace Name
official czb
intermediary net/minecraft/class_2710
named net/minecraft/util/function/MaterialPredicate
  • Field Details

    • IS_AIR

      private static final MaterialPredicate IS_AIR
      Mappings:
      Namespace Name Mixin selector
      official a Lczb;a:Lczb;
      intermediary field_12404 Lnet/minecraft/class_2710;field_12404:Lnet/minecraft/class_2710;
      named IS_AIR Lnet/minecraft/util/function/MaterialPredicate;IS_AIR:Lnet/minecraft/util/function/MaterialPredicate;
    • material

      private final Material material
      Mappings:
      Namespace Name Mixin selector
      official b Lczb;b:Ldtn;
      intermediary field_12405 Lnet/minecraft/class_2710;field_12405:Lnet/minecraft/class_3614;
      named material Lnet/minecraft/util/function/MaterialPredicate;material:Lnet/minecraft/block/Material;
  • Constructor Details

    • MaterialPredicate

      MaterialPredicate(Material material)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lczb;<init>(Ldtn;)V
      intermediary <init> Lnet/minecraft/class_2710;<init>(Lnet/minecraft/class_3614;)V
      named <init> Lnet/minecraft/util/function/MaterialPredicate;<init>(Lnet/minecraft/block/Material;)V
  • Method Details

    • create

      public static MaterialPredicate create(Material material)
      Mappings:
      Namespace Name Mixin selector
      official a Lczb;a(Ldtn;)Lczb;
      intermediary method_11746 Lnet/minecraft/class_2710;method_11746(Lnet/minecraft/class_3614;)Lnet/minecraft/class_2710;
      named create Lnet/minecraft/util/function/MaterialPredicate;create(Lnet/minecraft/block/Material;)Lnet/minecraft/util/function/MaterialPredicate;
    • test

      public boolean test(@Nullable @Nullable BlockState blockState)
      Specified by:
      test in interface Predicate<BlockState>
      Mappings:
      Namespace Name Mixin selector
      official a Lczb;a(Lcyt;)Z
      intermediary method_11745 Lnet/minecraft/class_2710;method_11745(Lnet/minecraft/class_2680;)Z
      named test Lnet/minecraft/util/function/MaterialPredicate;test(Lnet/minecraft/block/BlockState;)Z