Examples of BannedGenerator


Examples of com.comphenix.protocol.reflect.instances.BannedGenerator

  private static DefaultInstances getDefaultGenerator() {
    List<InstanceProvider> providers = Lists.newArrayList();
   
    // Prevent certain classes from being generated
    providers.add(new BannedGenerator(MinecraftReflection.getItemStackClass(), MinecraftReflection.getBlockClass()));
    providers.addAll(DefaultInstances.DEFAULT.getRegistered());
    return DefaultInstances.fromCollection(providers);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.