本文整理汇总了Java中net.minecraft.network.play.server.SPacketPlayerPosLook.EnumFlags类的典型用法代码示例。如果您正苦于以下问题:Java EnumFlags类的具体用法?Java EnumFlags怎么用?Java EnumFlags使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EnumFlags类属于net.minecraft.network.play.server.SPacketPlayerPosLook包,在下文中一共展示了EnumFlags类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: teleport
import net.minecraft.network.play.server.SPacketPlayerPosLook.EnumFlags; //导入依赖的package包/类
public void teleport(Entity entity, Vec3d target) throws CommandException {
if(entity == null) {
throw new CommandException("entity must not be NULL!");
}
if(target == null) {
throw new CommandException("target must not be NULL!");
}
// XXX DISABLED FUNCTIONALITY: This doesn't work as expected.
if(Boolean.FALSE.booleanValue() && entity instanceof EntityPlayerMP) {
// special case code
EnumSet<EnumFlags> enumset = EnumSet.noneOf(SPacketPlayerPosLook.EnumFlags.class);
float f = entity.rotationPitch;
float f1 = entity.rotationYaw;
entity.startRiding((Entity)null);
((EntityPlayerMP)entity).connection.setPlayerLocation(target.xCoord, target.yCoord, target.zCoord, f, f1, enumset);
entity.velocityChanged = true;
return;
}
entity.setPositionAndUpdate(target.xCoord, target.yCoord, target.zCoord);
entity.velocityChanged = true;
}
示例2: setPlayerLocation
import net.minecraft.network.play.server.SPacketPlayerPosLook.EnumFlags; //导入依赖的package包/类
@Override
public void setPlayerLocation(double x, double y, double z, float yaw, float pitch, @Nonnull Set<EnumFlags> relativeSet) {
}
示例3: setPlayerLocation
import net.minecraft.network.play.server.SPacketPlayerPosLook.EnumFlags; //导入依赖的package包/类
@Override
public void setPlayerLocation(double x, double y, double z, float yaw, float pitch, Set<EnumFlags> relativeSet) {
}