Interface InternalAPIBridge
Static bridge to the server internals.
Any and all methods in here are *not* to be called by plugin developers, may change at any time and may generally cause issues when called under unexpected circumstances.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.createCombatEntry(DamageSource damageSource, float damage, @Nullable FallLocationType fallLocationType, float fallDistance) createCombatEntry(LivingEntity entity, DamageSource damageSource, float damage) createDamageSourceBuilder(DamageType damageType) createOccupancy(String enumNameEntry) createPluginLifecycleEventManager(JavaPlugin plugin, BooleanSupplier registrationCheck) deserializeItem(byte[] data) static InternalAPIBridgeget()Yields the instance of this API bridge by lazily requesting it from the java service loader API.getDamageEffect(String key) getDefaultEntityAttributes(NamespacedKey entityKey) getStatisticCriteriaKey(Statistic statistic) getTranslationKey(EntityType entityType) default VersionFetcherbooleanhasDefaultEntityAttributes(NamespacedKey entityKey) <MODERN,LEGACY>
GameRule<LEGACY> legacyGameRuleBridge(GameRule<MODERN> rule, Function<LEGACY, MODERN> fromLegacyToModern, Function<MODERN, LEGACY> toLegacyFromModern, Class<LEGACY> legacyClass) resolveWithContext(Component component, @Nullable CommandSender context, @Nullable Entity scoreboardSubject, boolean bypassPermissions) restricted(Predicate<CommandSourceStack> predicate) Causes this predicate to be considered restricted.
-
Method Details
-
get
Yields the instance of this API bridge by lazily requesting it from the java service loader API.- Returns:
- the instance.
-
constructLegacyCustomBiome
@Deprecated(forRemoval=true, since="1.21.5") @ScheduledForRemoval(inVersion="1.22") Biome constructLegacyCustomBiome()Deprecated, for removal: This API element is subject to removal in a future version. -
createCombatEntry
-
createCombatEntry
CombatEntry createCombatEntry(DamageSource damageSource, float damage, @Nullable FallLocationType fallLocationType, float fallDistance) -
restricted
Causes this predicate to be considered restricted. Applying this to a command node prevents this command from being executed from an unattended context, such as click events.- Parameters:
predicate- wrapped predicate- Returns:
- wrapped predicate
-
defaultMannequinProfile
ResolvableProfile defaultMannequinProfile() -
allSkinParts
-
defaultMannequinDescription
Component defaultMannequinDescription() -
legacyGameRuleBridge
-
validMannequinPoses
-
createOccupancy
-
createDamageSourceBuilder
-
getDamageEffect
-
getTranslationKey
-
getVersionFetcher
-
deserializeItem
-
hasDefaultEntityAttributes
-
getDefaultEntityAttributes
-
getStatisticCriteriaKey
-
createPluginLifecycleEventManager
LifecycleEventManager<Plugin> createPluginLifecycleEventManager(JavaPlugin plugin, BooleanSupplier registrationCheck) -
createEmptyStack
ItemStack createEmptyStack() -
resolveWithContext
Component resolveWithContext(Component component, @Nullable CommandSender context, @Nullable Entity scoreboardSubject, boolean bypassPermissions) throws IOException - Throws:
IOException
-
componentFlattener
ComponentFlattener componentFlattener()
-