congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Advancement.getDisplay
Code IndexAdd Tabnine to your IDE (free)

How to use
getDisplay
method
in
net.minecraft.advancements.Advancement

Best Java code snippets using net.minecraft.advancements.Advancement.getDisplay (Showing top 1 results out of 315)

origin: SleepyTrousers/EnderCore

@SubscribeEvent
public void onAchievement(AdvancementEvent event) {
 final @Nonnull Advancement advancement = NullHelper.notnullF(event.getAdvancement(), "AdvancementEvent.getAdvancement()");
 DisplayInfo display = advancement.getDisplay();
 if (ConfigHandler.betterAchievements && !event.getEntity().world.isRemote && display != null && display.shouldAnnounceToChat()) {
  event.getEntityPlayer().getEntityData().setInteger("fireworksLeft", 9);
  event.getEntityPlayer().getEntityData().setBoolean("fireworkDelay", false);
 }
}
net.minecraft.advancementsAdvancementgetDisplay

Popular methods of Advancement

  • getId
  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now