Package | Description |
---|---|
net.minecraft.world.storage.loot | |
net.minecraft.world.storage.loot.conditions | |
net.minecraft.world.storage.loot.functions |
Modifier and Type | Field and Description |
---|---|
static LootParameter<TileEntity> |
LootParameters.BLOCK_ENTITY |
static LootParameter<BlockState> |
LootParameters.BLOCK_STATE |
static LootParameter<DamageSource> |
LootParameters.DAMAGE_SOURCE |
static LootParameter<Entity> |
LootParameters.DIRECT_KILLER_ENTITY |
static LootParameter<java.lang.Float> |
LootParameters.EXPLOSION_RADIUS |
static LootParameter<Entity> |
LootParameters.KILLER_ENTITY |
static LootParameter<PlayerEntity> |
LootParameters.LAST_DAMAGE_PLAYER |
private LootParameter<? extends Entity> |
LootContext.EntityTarget.parameter |
static LootParameter<BlockPos> |
LootParameters.POSITION |
static LootParameter<Entity> |
LootParameters.THIS_ENTITY |
static LootParameter<ItemStack> |
LootParameters.TOOL |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<LootParameter<?>> |
LootParameterSet.all |
private java.util.Map<LootParameter<?>,java.lang.Object> |
LootContext.Builder.lootParameters |
private java.util.Set<LootParameter<?>> |
LootParameterSet.Builder.optional |
private java.util.Map<LootParameter<?>,java.lang.Object> |
LootContext.parameters |
private java.util.Set<LootParameter<?>> |
LootParameterSet.required |
private java.util.Set<LootParameter<?>> |
LootParameterSet.Builder.required |
Modifier and Type | Method and Description |
---|---|
LootParameter<? extends Entity> |
LootContext.EntityTarget.getParameter() |
private static <T> LootParameter<T> |
LootParameters.register(java.lang.String p_216280_0_) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<LootParameter<?>> |
LootParameterSet.getAllParameters() |
java.util.Set<LootParameter<?>> |
LootParameterSet.getRequiredParameters() |
default java.util.Set<LootParameter<?>> |
IParameterized.getRequiredParameters() |
Modifier and Type | Method and Description |
---|---|
<T> T |
LootContext.Builder.assertPresent(LootParameter<T> parameter) |
<T> T |
LootContext.get(LootParameter<T> parameter) |
<T> T |
LootContext.Builder.get(LootParameter<T> parameter) |
boolean |
LootContext.has(LootParameter<?> parameter) |
LootParameterSet.Builder |
LootParameterSet.Builder.optional(LootParameter<?> parameter) |
LootParameterSet.Builder |
LootParameterSet.Builder.required(LootParameter<?> parameter) |
<T> LootContext.Builder |
LootContext.Builder.withNullableParameter(LootParameter<T> parameter,
T value) |
<T> LootContext.Builder |
LootContext.Builder.withParameter(LootParameter<T> parameter,
T value) |
Constructor and Description |
---|
EntityTarget(java.lang.String targetTypeIn,
LootParameter<? extends Entity> parameterIn) |
Constructor and Description |
---|
LootContext(java.util.Random rand,
float luckIn,
ServerWorld worldIn,
java.util.function.Function<ResourceLocation,LootTable> lootTableManagerIn,
java.util.function.Function<ResourceLocation,ILootCondition> p_i225885_5_,
java.util.Map<LootParameter<?>,java.lang.Object> parametersIn,
java.util.Map<ResourceLocation,LootContext.IDynamicDropProvider> conditionsIn) |
LootParameterSet(java.util.Set<LootParameter<?>> required,
java.util.Set<LootParameter<?>> optional) |
LootParameterSet(java.util.Set<LootParameter<?>> required,
java.util.Set<LootParameter<?>> optional) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<LootParameter<?>> |
Inverted.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
MatchTool.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
KilledByPlayer.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
BlockStateProperty.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
DamageSourceProperties.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
SurvivesExplosion.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
TableBonus.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
RandomChanceWithLooting.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
EntityHasScore.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
EntityHasProperty.getRequiredParameters() |
Modifier and Type | Field and Description |
---|---|
LootParameter<?> |
CopyNbt.Source.lootParam |
LootParameter<?> |
CopyName.Source.parameter |
Modifier and Type | Method and Description |
---|---|
java.util.Set<LootParameter<?>> |
ExplorationMap.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
CopyNbt.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
LootingEnchantBonus.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
SetName.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
ApplyBonus.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
CopyName.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
FillPlayerHead.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
CopyBlockState.getRequiredParameters() |
java.util.Set<LootParameter<?>> |
SetLore.getRequiredParameters() |
Constructor and Description |
---|
Source(java.lang.String nameIn,
LootParameter<?> parameterIn) |
Source(java.lang.String p_i50672_3_,
LootParameter<T> p_i50672_4_,
java.util.function.Function<? super T,INBT> p_i50672_5_) |