Skip to content

Instantly share code, notes, and snippets.

View Romain-P's full-sized avatar
🈴
/home

- Romain-P

🈴
/home
View GitHub Profile
@Romain-P
Romain-P / Player.java
Created April 27, 2014 18:10
how to create an object in java :) fucking noob
package fr.rushland.server.objects;
import com.google.inject.Inject;
import fr.rushland.database.data.PlayerManager;
import lombok.Getter;
import lombok.Setter;
import java.util.concurrent.TimeUnit;
public class Player {
@Romain-P
Romain-P / Player.java
Created April 27, 2014 18:12
how to create an object in java :] Fucking noob
package fr.rushland.server.objects;
import com.google.inject.Inject;
import fr.rushland.database.data.PlayerManager;
import lombok.Getter;
import lombok.Setter;
import java.util.concurrent.TimeUnit;
public class Player {
package fr.rushland.server.objects;
import com.google.inject.Inject;
import fr.rushland.core.Config;
import fr.rushland.database.data.ServerManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
@Romain-P
Romain-P / ClientServer.java
Created April 28, 2014 17:59
Tiens, commences un plug l'ami ;)
package fr.rushland.server.objects;
import com.google.inject.Inject;
import fr.rushland.core.Config;
import fr.rushland.database.data.ServerManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
@Romain-P
Romain-P / Activator.java
Created June 8, 2014 15:07
like that ;)
package org.heater.test.service;
import com.google.inject.AbstractModule;
import com.google.inject.Inject;
import com.google.inject.Injector;
import com.google.inject.Module;
import org.heater.api.HeaterActivator;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
package org.heater.test.service;
import com.google.inject.AbstractModule;
import com.google.inject.Inject;
import com.google.inject.Injector;
import com.google.inject.Module;
import org.heater.api.HeaterActivator;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
@Romain-P
Romain-P / Main.java
Created June 8, 2014 17:18
OSGi using guice
package org.heater.core;
import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Module;
import org.apache.felix.framework.Felix;
import org.heater.api.HeaterActivator;
import org.heater.gui.GuiModule;
import org.heater.gui.HeaterFrame;
@Romain-P
Romain-P / PluginManager.java
Created June 8, 2014 18:50
plugin manager
package org.heater.core.plugin;
import com.google.inject.AbstractModule;
import com.google.inject.multibindings.Multibinder;
import org.heater.api.HeaterActivator;
import java.util.ArrayList;
import java.util.List;
public class PluginManager {
package org.heater.core.plugin;
import com.google.inject.AbstractModule;
import com.google.inject.Inject;
import com.google.inject.multibindings.Multibinder;
import org.heater.api.HeaterActivator;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
@Romain-P
Romain-P / Main.java
Created June 8, 2014 19:20
main class
package org.heater.core;
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.heater.core.plugin.PluginManager;
import org.heater.gui.GuiModule;
import org.heater.gui.HeaterFrame;
import javax.swing.*;
import java.awt.*;