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 cib
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 Lcib;a:Lcib;
      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 Lcib;b:Ldap;
      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

      private MaterialPredicate​(Material material)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcib;<init>(Ldap;)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 Lcib;a(Ldap;)Lcib;
      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 BlockState blockState)
      Specified by:
      test in interface Predicate<BlockState>
      Mappings:
      Namespace Name Mixin selector
      official a Lcib;a(Lcht;)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