本文整理汇总了Java中com.dsh105.echopet.compat.api.entity.SizeCategory类的典型用法代码示例。如果您正苦于以下问题:Java SizeCategory类的具体用法?Java SizeCategory怎么用?Java SizeCategory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SizeCategory类属于com.dsh105.echopet.compat.api.entity包,在下文中一共展示了SizeCategory类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSizeCategory
import com.dsh105.echopet.compat.api.entity.SizeCategory; //导入依赖的package包/类
@Override
public SizeCategory getSizeCategory() {
if (this.isBaby()) {
return SizeCategory.TINY;
} else {
return SizeCategory.REGULAR;
}
}
示例2: getSizeCategory
import com.dsh105.echopet.compat.api.entity.SizeCategory; //导入依赖的package包/类
@Override
public SizeCategory getSizeCategory(){
if(this.isBaby()){
return SizeCategory.TINY;
}else{
return SizeCategory.REGULAR;
}
}
示例3: getSizeCategory
import com.dsh105.echopet.compat.api.entity.SizeCategory; //导入依赖的package包/类
@Override
public SizeCategory getSizeCategory(){
if(this.isBaby()){
return SizeCategory.TINY;
}else{
return SizeCategory.LARGE;
}
}
示例4: getSizeCategory
import com.dsh105.echopet.compat.api.entity.SizeCategory; //导入依赖的package包/类
public SizeCategory getSizeCategory() {
if (getBukkitEntity().isBaby()) {
return SizeCategory.TINY;
} else {
return SizeCategory.REGULAR;
}
}
示例5: getSizeCategory
import com.dsh105.echopet.compat.api.entity.SizeCategory; //导入依赖的package包/类
@Override
public SizeCategory getSizeCategory() {
switch (getSize()) {
case 1:
return SizeCategory.TINY;
case 4:
return SizeCategory.LARGE;
default:
return SizeCategory.REGULAR;
}
}
示例6: getSizeCategory
import com.dsh105.echopet.compat.api.entity.SizeCategory; //导入依赖的package包/类
@Override
public SizeCategory getSizeCategory() {
if (this.isBaby()) {
return SizeCategory.TINY;
} else {
return SizeCategory.LARGE;
}
}
示例7: getSizeCategory
import com.dsh105.echopet.compat.api.entity.SizeCategory; //导入依赖的package包/类
@Override
public SizeCategory getSizeCategory() {
switch (getSkeletonType()) {
case STRAY:
case NORMAL:
return SizeCategory.REGULAR;
case WITHER:
return SizeCategory.LARGE;
default:
throw new AssertionError("Unknown skeleton type: " + getSkeletonType());
}
}
示例8: getSizeCategory
import com.dsh105.echopet.compat.api.entity.SizeCategory; //导入依赖的package包/类
public SizeCategory getSizeCategory(){
return SizeCategory.REGULAR;
}
示例9: getSizeCategory
import com.dsh105.echopet.compat.api.entity.SizeCategory; //导入依赖的package包/类
@Override
public SizeCategory getSizeCategory(){
return SizeCategory.REGULAR;
}
示例10: getSizeCategory
import com.dsh105.echopet.compat.api.entity.SizeCategory; //导入依赖的package包/类
public SizeCategory getSizeCategory() {
return SizeCategory.REGULAR;
}
示例11: getSizeCategory
import com.dsh105.echopet.compat.api.entity.SizeCategory; //导入依赖的package包/类
@Override
public SizeCategory getSizeCategory() {
return SizeCategory.TINY;
}
示例12: getSizeCategory
import com.dsh105.echopet.compat.api.entity.SizeCategory; //导入依赖的package包/类
@Override
public SizeCategory getSizeCategory() {
return SizeCategory.OVERSIZE;
}
示例13: getSizeCategory
import com.dsh105.echopet.compat.api.entity.SizeCategory; //导入依赖的package包/类
@Override
public SizeCategory getSizeCategory() {
return SizeCategory.LARGE;
}
示例14: getSizeCategory
import com.dsh105.echopet.compat.api.entity.SizeCategory; //导入依赖的package包/类
@Override
public SizeCategory getSizeCategory() {
return SizeCategory.GIANT;
}