public static class LootContext.Builder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private DamageSource |
damageSource |
private Entity |
lootedEntity |
private float |
luck |
private EntityPlayer |
player |
private WorldServer |
world |
Constructor and Description |
---|
Builder(WorldServer worldIn) |
Modifier and Type | Method and Description |
---|---|
LootContext |
build() |
LootContext.Builder |
withDamageSource(DamageSource dmgSource) |
LootContext.Builder |
withLootedEntity(Entity entityIn) |
LootContext.Builder |
withLuck(float luckIn) |
LootContext.Builder |
withPlayer(EntityPlayer playerIn) |
private final WorldServer world
private float luck
private Entity lootedEntity
private EntityPlayer player
private DamageSource damageSource
public Builder(WorldServer worldIn)
public LootContext.Builder withLuck(float luckIn)
public LootContext.Builder withLootedEntity(Entity entityIn)
public LootContext.Builder withPlayer(EntityPlayer playerIn)
public LootContext.Builder withDamageSource(DamageSource dmgSource)
public LootContext build()