public class BlockUsedCriterion extends AbstractCriterion<BlockUsedCriterion.Conditions>
Modifier and Type | Class and Description |
---|---|
static class |
BlockUsedCriterion.Conditions |
Criterion.ConditionsContainer<T extends CriterionConditions>
Modifier and Type | Field and Description |
---|---|
private Identifier |
id |
Constructor and Description |
---|
BlockUsedCriterion(Identifier id) |
Modifier and Type | Method and Description |
---|---|
BlockUsedCriterion.Conditions |
conditionsFromJson(JsonObject jsonObject,
JsonDeserializationContext jsonDeserializationContext) |
Identifier |
getId() |
void |
test(ServerPlayerEntity player,
BlockPos pos,
ItemStack stack) |
beginTrackingCondition, endTracking, endTrackingCondition, grant, test
private final Identifier id
public BlockUsedCriterion(Identifier id)
public Identifier getId()
public BlockUsedCriterion.Conditions conditionsFromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext)
public void test(ServerPlayerEntity player, BlockPos pos, ItemStack stack)