public static class LootContext.Builder
extends java.lang.Object
コンストラクタと説明 |
---|
Builder(ServerWorld worldIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
<T> T |
assertPresent(LootParameter<T> parameter) |
LootContext |
build(LootParameterSet parameterSet) |
<T> T |
get(LootParameter<T> parameter) |
ServerWorld |
getWorld() |
LootContext.Builder |
withDynamicDrop(ResourceLocation p_216017_1_,
LootContext.IDynamicDropProvider p_216017_2_) |
LootContext.Builder |
withLuck(float luckIn) |
<T> LootContext.Builder |
withNullableParameter(LootParameter<T> parameter,
T value) |
<T> LootContext.Builder |
withParameter(LootParameter<T> parameter,
T value) |
LootContext.Builder |
withRandom(java.util.Random randomIn) |
LootContext.Builder |
withSeed(long seed) |
LootContext.Builder |
withSeededRandom(long seed,
java.util.Random p_216020_3_) |
public Builder(ServerWorld worldIn)
public LootContext.Builder withRandom(java.util.Random randomIn)
public LootContext.Builder withSeed(long seed)
public LootContext.Builder withSeededRandom(long seed, java.util.Random p_216020_3_)
public LootContext.Builder withLuck(float luckIn)
public <T> LootContext.Builder withParameter(LootParameter<T> parameter, T value)
public <T> LootContext.Builder withNullableParameter(LootParameter<T> parameter, @Nullable T value)
public LootContext.Builder withDynamicDrop(ResourceLocation p_216017_1_, LootContext.IDynamicDropProvider p_216017_2_)
public ServerWorld getWorld()
public <T> T assertPresent(LootParameter<T> parameter)
@Nullable public <T> T get(LootParameter<T> parameter)
public LootContext build(LootParameterSet parameterSet)