Class ExpandLootContextParamSets
java.lang.Object
com.blamejared.crafttweaker.natives.loot.param.ExpandLootContextParamSets
These are pre-registered param sets that are used by vanilla.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.level.storage.loot.parameters.LootContextParamSetGets the 'advancement_entity' param set.static net.minecraft.world.level.storage.loot.parameters.LootContextParamSetGets the 'advancement_entity' param set.static net.minecraft.world.level.storage.loot.parameters.LootContextParamSetGets the 'advancement_reward' param set.static net.minecraft.world.level.storage.loot.parameters.LootContextParamSetGets the 'generic' param set.static net.minecraft.world.level.storage.loot.parameters.LootContextParamSetblock()Gets the 'block' param set.static net.minecraft.world.level.storage.loot.parameters.LootContextParamSetchest()Gets the 'chest' param set.static net.minecraft.world.level.storage.loot.parameters.LootContextParamSetcommand()Gets the 'command' param set.static net.minecraft.world.level.storage.loot.parameters.LootContextParamSetempty()Gets the 'empty' param set.static net.minecraft.world.level.storage.loot.parameters.LootContextParamSetentity()Gets the 'entity' param set.static net.minecraft.world.level.storage.loot.parameters.LootContextParamSetfishing()Gets the 'fishing' param set.static net.minecraft.world.level.storage.loot.parameters.LootContextParamSetget(net.minecraft.resources.ResourceLocation name) Gets a param set from its name.static net.minecraft.world.level.storage.loot.parameters.LootContextParamSetgift()Gets the 'gift' param set.static net.minecraft.world.level.storage.loot.parameters.LootContextParamSetGets the 'barter' param set.static net.minecraft.world.level.storage.loot.parameters.LootContextParamSetselector()Gets the 'selector' param set.
-
Constructor Details
-
ExpandLootContextParamSets
public ExpandLootContextParamSets()
-
-
Method Details
-
empty
public static net.minecraft.world.level.storage.loot.parameters.LootContextParamSet empty()Gets the 'empty' param set.- Returns:
- The 'empty' param set.
-
chest
public static net.minecraft.world.level.storage.loot.parameters.LootContextParamSet chest()Gets the 'chest' param set. The 'chest' param set requires the following params:origin
this_entity
- Returns:
- The 'chest' param set.
-
command
public static net.minecraft.world.level.storage.loot.parameters.LootContextParamSet command()Gets the 'command' param set. The 'command' param set requires the following params:origin
this_entity
- Returns:
- The 'command' param set.
-
selector
public static net.minecraft.world.level.storage.loot.parameters.LootContextParamSet selector()Gets the 'selector' param set. The 'selector' param set requires the following params:originthis_entity
- Returns:
- The 'selector' param set.
-
fishing
public static net.minecraft.world.level.storage.loot.parameters.LootContextParamSet fishing()Gets the 'fishing' param set. The 'fishing' param set requires the following params:origintool
this_entity
- Returns:
- The 'fishing' param set.
-
entity
public static net.minecraft.world.level.storage.loot.parameters.LootContextParamSet entity()Gets the 'entity' param set. The 'entity' param set requires the following params:this_entityorigindamage_source
killer_entitydirect_killer_entitylast_damage_player
- Returns:
- The 'entity' param set.
-
gift
public static net.minecraft.world.level.storage.loot.parameters.LootContextParamSet gift()Gets the 'gift' param set. The 'gift' param set requires the following params:originthis_entity
- Returns:
- The 'gift' param set.
-
piglinBarter
public static net.minecraft.world.level.storage.loot.parameters.LootContextParamSet piglinBarter()Gets the 'barter' param set. The 'barter' param set requires the following params:this_entity
- Returns:
- The 'barter' param set.
-
advancementReward
public static net.minecraft.world.level.storage.loot.parameters.LootContextParamSet advancementReward()Gets the 'advancement_reward' param set. The 'advancement_reward' param set requires the following params:this_entityorigin
- Returns:
- The 'advancement_reward' param set.
-
advancementEntity
public static net.minecraft.world.level.storage.loot.parameters.LootContextParamSet advancementEntity()Gets the 'advancement_entity' param set. The 'advancement_entity' param set requires the following params:this_entityorigin
- Returns:
- The 'advancement_entity' param set.
-
advancementLocation
public static net.minecraft.world.level.storage.loot.parameters.LootContextParamSet advancementLocation()Gets the 'advancement_entity' param set. The 'advancement_entity' param set requires the following params:this_entityorigin
- Returns:
- The 'advancement_entity' param set.
-
allParams
public static net.minecraft.world.level.storage.loot.parameters.LootContextParamSet allParams()Gets the 'generic' param set. The 'generic' param set requires the following params:this_entitylast_damage_playerdamage_sourcekiller_entitydirect_killer_entityoriginblock_stateblock_entitytoolexplosion_radius
- Returns:
- The 'generic' param set.
-
block
public static net.minecraft.world.level.storage.loot.parameters.LootContextParamSet block()Gets the 'block' param set. The 'block' param set requires the following params:block_stateorigintool
this_entityblock_entityexplosion_radius
- Returns:
- The 'block' param set.
-
get
public static net.minecraft.world.level.storage.loot.parameters.LootContextParamSet get(net.minecraft.resources.ResourceLocation name) Gets a param set from its name.Will throw an exception if no param set is registered for the given name.
- Parameters:
name- The name of the param.- Returns:
- The found param set or an exception if not registered.
-