类 IsAmmoInstalled

java.lang.Object
mod.chloeprime.gunsmithlib.common.loot.IsAmmoInstalled
所有已实现的接口:
Predicate<net.minecraft.world.level.storage.loot.LootContext>, net.minecraft.world.level.storage.loot.LootContextUser, net.minecraft.world.level.storage.loot.predicates.LootItemCondition

@ParametersAreNonnullByDefault public class IsAmmoInstalled extends Object implements net.minecraft.world.level.storage.loot.predicates.LootItemCondition
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static class 
     
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final com.mojang.serialization.MapCodec<IsAmmoInstalled>
     

    从接口继承的字段 net.minecraft.world.level.storage.loot.predicates.LootItemCondition

    DIRECT_CODEC, TYPED_CODEC
  • 构造器概要

    构造器
    构造器
    说明
    IsAmmoInstalled(net.minecraft.resources.ResourceLocation ammoId)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    net.minecraft.resources.ResourceLocation
     
    net.minecraft.world.level.storage.loot.predicates.LootItemConditionType
     
    isAmmoInstalled(net.minecraft.resources.ResourceLocation ammoId)
     
    boolean
    test(net.minecraft.world.level.storage.loot.LootContext context)
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 net.minecraft.world.level.storage.loot.LootContextUser

    getReferencedContextParams, validate

    从接口继承的方法 java.util.function.Predicate

    and, negate, or
  • 字段详细资料

    • CODEC

      public static final com.mojang.serialization.MapCodec<IsAmmoInstalled> CODEC
  • 构造器详细资料

    • IsAmmoInstalled

      public IsAmmoInstalled(net.minecraft.resources.ResourceLocation ammoId)
  • 方法详细资料

    • isAmmoInstalled

      public static IsAmmoInstalled.Builder isAmmoInstalled(net.minecraft.resources.ResourceLocation ammoId)
    • getAmmoId

      public net.minecraft.resources.ResourceLocation getAmmoId()
    • test

      public boolean test(net.minecraft.world.level.storage.loot.LootContext context)
      指定者:
      test 在接口中 Predicate<net.minecraft.world.level.storage.loot.LootContext>
    • getType

      @Nonnull public net.minecraft.world.level.storage.loot.predicates.LootItemConditionType getType()
      指定者:
      getType 在接口中 net.minecraft.world.level.storage.loot.predicates.LootItemCondition