本文整理汇总了Java中cpw.mods.fml.relauncher.Side.SERVER属性的典型用法代码示例。如果您正苦于以下问题:Java Side.SERVER属性的具体用法?Java Side.SERVER怎么用?Java Side.SERVER使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类cpw.mods.fml.relauncher.Side
的用法示例。
在下文中一共展示了Side.SERVER属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: preInit
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event){
if (event.getSide() == Side.SERVER) {
logger.info("Client side only mod - not doing anything on the server!");
return;
}
}
示例2: s_perform
@Listener(channel=MSG_PERFORM, side=Side.SERVER)
public void s_perform() {
if(consume()) {
tick_shot();
ctx.addSkillExp(getExpIncr());
}
}
示例3: s_perform2
@Listener(channel=MSG_PERFORM2, side=Side.SERVER)
public void s_perform2() {
if (this.getStatus() == Status.TERMINATED) {
return;
}
end();
}
示例4: s_perform
@Listener(channel=MSG_PERFORM, side=Side.SERVER)
public void s_perform() {
if(consume()) {
//System.out.println("caonima2");
World world = player.worldObj;
EntityBasicAirGun gun = new EntityBasicAirGun(world, player, ctx.getSkillExp(), player.getLookVec());
world.spawnEntityInWorld(gun);
ctx.addSkillExp(getExpIncr());
ctx.setCooldown((int)MathUtils.lerpf(45, 15, ctx.getSkillExp()));
}
terminate();
}
示例5: s_perform
@Listener(channel=MSG_PERFORM, side=Side.SERVER)
public void s_perform() {
if(consume()) {
World world = player.worldObj;
entity = new EntityTurbulentStorm(world, player, ctx.getSkillExp());
world.spawnEntityInWorld(entity);
}
initialized = true;
}
示例6: s_perform
@Listener(channel=MSG_PERFORM, side=Side.SERVER)
public void s_perform() {
if(consume()) {
World world = player.worldObj;
EntityWindBlade gun = new EntityWindBlade(world, player, ctx.getSkillExp(), player.getLookVec());
world.spawnEntityInWorld(gun);
ctx.addSkillExp(getExpIncr());
ctx.setCooldown((int)MathUtils.lerpf(60, 30, ctx.getSkillExp()));
}
terminate();
}
示例7: s_perform
@Listener(channel=MSG_PERFORM, side=Side.SERVER)
public void s_perform() {
if(consume()) {
sendToClient(MSG_PERFORM2);
player.fallDistance = 0;
ctx.addSkillExp(getExpIncr());
ctx.setCooldown((int)MathUtils.lerpf(40, 10, ctx.getSkillExp()));
}
terminate();
}
示例8: s_tick
@Listener(channel=MSG_TICK, side=Side.SERVER)
public void s_tick() {
if (this.getStatus() == Status.TERMINATED) {
return;
}
if(tick()) {
tick_shot();
ctx.addSkillExp(getExpIncr());
} else {
end();
}
}
示例9: getDatabaseTable
@SideOnly(Side.SERVER)
public abstract String getDatabaseTable ( ) ;
示例10: loadCategory
@SideOnly(Side.SERVER)
public abstract void loadCategory ( ) throws Exception ;
示例11: loadCategoryFromObject
@SideOnly(Side.SERVER)
public abstract void loadCategoryFromObject(Object o);
示例12: giveMerch
@SideOnly(Side.SERVER)
public abstract void giveMerch ( EntityPlayerMP player, Merch merch, int amount ) ;
示例13: getNextMerchId
@SideOnly(Side.SERVER)
public int getNextMerchId ( ) {
Statement stat = null ;
try {
stat = ModDataBase . getNewStatement ( getDatabaseLinkName ( ) ) ;
ResultSet rs = stat . executeQuery ( "SHOW TABLE STATUS LIKE '" + getDatabaseTable ( ) + "'" ) ;
int r = -1 ;
while ( rs . next ( ) ) {
r = rs . getInt ( "Auto_increment" ) ;
}
rs . close ( ) ;
ModDataBase . closeStatementAndConnection ( stat ) ;
return r ;
} catch ( Exception ex ) {
ex . printStackTrace ( ) ;
}
ModDataBase . closeStatementAndConnection ( stat ) ;
return -1 ;
}
示例14: updateMerch
@SideOnly ( Side . SERVER )
@Override
public void updateMerch ( int id, Merch info ) {
super . updateMerch ( id, info ) ;
updateEntityInfo ( ( EntityInfo ) info ) ;
}
示例15: updateMerch
@SideOnly ( Side . SERVER )
@Override
public void updateMerch ( int id, Merch info ) {
super . updateMerch ( id, info ) ;
updateItemInfo ( ( ItemInfo ) info ) ;
}