Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.Statistic Enum Reference


enum  Type

Public Member Functions

Type getType ()
boolean isSubstatistic ()
boolean isBlock ()

Public Attributes


Detailed Description

Represents a countable statistic, which is tracked by the server.

Definition at line 6 of file Statistic.java.

Member Function Documentation

Type org.bukkit.Statistic.getType ( )

Gets the type of this statistic.

the type of this statistic

Definition at line 52 of file Statistic.java.

52  {
53  return type;
54  }
boolean org.bukkit.Statistic.isBlock ( )

Checks if this is a substatistic dealing with blocks.

This is a redundant method and equivalent to checking getType() == Type.BLOCK

true if this deals with blocks

Definition at line 79 of file Statistic.java.

References org.bukkit.Statistic.Type.BLOCK.

79  {
80  return type == Type.BLOCK;
81  }
boolean org.bukkit.Statistic.isSubstatistic ( )

Checks if this is a substatistic.

A substatistic exists en masse for each block, item, or entitytype, depending on getType().

This is a redundant method and equivalent to checking getType() != Type.UNTYPED

true if this is a substatistic

Definition at line 67 of file Statistic.java.

References org.bukkit.Statistic.Type.UNTYPED.

67  {
68  return type != Type.UNTYPED;
69  }

The documentation for this enum was generated from the following file: