changes to run on non dedicated servers as well
This commit is contained in:
parent
7632c4e498
commit
2260d547dc
11 changed files with 99 additions and 72 deletions
|
@ -6,15 +6,22 @@ import java.util.function.Supplier;
|
|||
|
||||
public class DataHandlerDescriptor {
|
||||
public DataHandlerDescriptor(ResourceLocation identifier, Supplier<DataHandler> instancer){
|
||||
this(identifier, instancer, false);
|
||||
this(identifier, instancer, instancer, false);
|
||||
}
|
||||
|
||||
public DataHandlerDescriptor(ResourceLocation identifier, Supplier<DataHandler> instancer, boolean sendOnJoin){
|
||||
this.instancer = instancer;
|
||||
this.identifier = identifier;
|
||||
this(identifier, instancer, instancer, sendOnJoin);
|
||||
}
|
||||
public DataHandlerDescriptor(ResourceLocation identifier, Supplier<DataHandler> receiv_instancer, Supplier<DataHandler> join_instancer, boolean sendOnJoin){
|
||||
this.INSTANCE = receiv_instancer;
|
||||
this.JOIN_INSTANCE = join_instancer;
|
||||
this.IDENTIFIER = identifier;
|
||||
|
||||
this.sendOnJoin = sendOnJoin;
|
||||
}
|
||||
|
||||
public final boolean sendOnJoin;
|
||||
public final ResourceLocation identifier;
|
||||
public final Supplier<DataHandler> instancer;
|
||||
public final ResourceLocation IDENTIFIER;
|
||||
public final Supplier<DataHandler> INSTANCE;
|
||||
public final Supplier<DataHandler> JOIN_INSTANCE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue