@Test public void test_packetColored_Location_Color() { FakePacket target = new FakePacket(true, 2D, 3D, 4D, 255D / 255D, 120D / 255D, 60D / 255D, 1D, 0); particleType.packetColored(true, target.getLocation(), Color.fromRGB(255, 120, 60)); verifyArgumentPassWithDelta(target); }
public Object packetColored(boolean far, Location loc, Color color) { int r = color.getRed(); if (r == 0) r = 1; return packet(far, loc.getX(), loc.getY(), loc.getZ(), r / 255D, color.getGreen() / 255D, color.getBlue() / 255D, 1D, 0); }
ParticleTypeRedstone extends ParticleType { public Object packetColored(boolean far, Location loc, Color color) { int r = color.getRed(); if (r == 0) r = 1; return packet(far, loc.getX(), loc.getY(), loc.getZ(), r / 255D, color.getGreen() / 255D, color.getBlue() / 255D, 1D, 0); } }
ParticleTypeRedstone extends ParticleType { public Object packetColored(boolean far, Location loc, Color color) { int r = color.getRed(); if (r == 0) r = 1; return packet(far, loc.getX(), loc.getY(), loc.getZ(), r / 255D, color.getGreen() / 255D, color.getBlue() / 255D, 1D, 0); }  }
ParticleTypeRedstone extends ParticleType { public Object packetColored(boolean far, Location loc, Color color) { int r = color.getRed(); if (r == 0) r = 1; return packet(far, loc.getX(), loc.getY(), loc.getZ(), r / 255D, color.getGreen() / 255D, color.getBlue() / 255D, 1D, 0); }  Object packetColored(boolean far, Location loc,
                                Color color); Object packetColored(boolean far, Vector loc,
                                Color color); Object packetColored(boolean far, double x, double y, double z,
                                Color color); Object packetColored(boolean far, Location loc,
                                int r, int g, int b); Object packetColored(boolean far, Vector loc,
                                int r, int g, int b); Object packetColored(boolean far, double x, double y, double z,
                                int r, int g, int b); }
ParticleTypeRedstone extends ParticleType { public Object packetColored(boolean far, Location loc, Color color) { int r = color.getRed(); if (r == 0) r = 1; return packet(far, loc.getX(), loc.getY(), loc.getZ(), r / 255D, color.getGreen() / 255D, color.getBlue() / 255D, 1D, 0); }  Object packetColored(boolean far, Location loc,
                                Color color); Object packetColored(boolean far, Vector loc,
                                Color color); Object packetColored(boolean far, double x, double y, double z,
                                Color color); Object packetColored(boolean far, Location loc,
                                int r, int g, int b); Object packetColored(boolean far, Vector loc,
                                int r, int g, int b); Object packetColored(boolean far, double x, double y, double z,
                                int r, int g, int b);  }