|
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
4 | 4 | <!-- Generated by javadoc (25) --> |
5 | | -<title>EntityComponentUtils (HySkript API - 1.0.0-beta2)</title> |
| 5 | +<title>EntityComponentUtils (HySkript API - 1.0.0-pre-release-1)</title> |
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
7 | 7 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
8 | 8 | <meta name="description" content="declaration: package: com.github.skriptdev.skript.api.hytale, class: EntityComponentUtils"> |
|
62 | 62 | </li> |
63 | 63 | <li><a href="#method-detail" tabindex="0">Method Details</a> |
64 | 64 | <ol class="toc-list"> |
| 65 | +<li><a href="#getComponent(com.hypixel.hytale.server.core.entity.Entity,com.hypixel.hytale.component.ComponentType)" tabindex="0">getComponent(Entity, ComponentType)</a></li> |
65 | 66 | <li><a href="#getEntityStatMap(com.hypixel.hytale.server.core.entity.LivingEntity)" tabindex="0">getEntityStatMap(LivingEntity)</a></li> |
66 | 67 | <li><a href="#getMovementStatesComponent(com.hypixel.hytale.server.core.entity.Entity)" tabindex="0">getMovementStatesComponent(Entity)</a></li> |
67 | 68 | <li><a href="#dropItem(com.hypixel.hytale.component.Store,com.hypixel.hytale.server.core.inventory.ItemStack,com.hypixel.hytale.math.vector.Location,com.hypixel.hytale.math.vector.Vector3f,float)" tabindex="0">dropItem(Store, ItemStack, Location, Vector3f, float)</a></li> |
@@ -118,14 +119,20 @@ <h2>Method Summary</h2> |
118 | 119 | com.hypixel.hytale.math.vector.Vector3f velocity, |
119 | 120 | float pickupDelay)</code></div> |
120 | 121 | <div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div> |
121 | | -<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/latest/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> com.hypixel.hytale.server.core.modules.entitystats.EntityStatMap</code></div> |
122 | | -<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getEntityStatMap(com.hypixel.hytale.server.core.entity.LivingEntity)" class="member-name-link">getEntityStatMap</a><wbr>(com.hypixel.hytale.server.core.entity.LivingEntity entity)</code></div> |
| 122 | +<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ECS_TYPE, T extends com.hypixel.hytale.component.Component<ECS_TYPE>><br>T</code></div> |
| 123 | +<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getComponent(com.hypixel.hytale.server.core.entity.Entity,com.hypixel.hytale.component.ComponentType)" class="member-name-link">getComponent</a><wbr>(com.hypixel.hytale.server.core.entity.Entity entity, |
| 124 | + com.hypixel.hytale.component.ComponentType<ECS_TYPE,<wbr>T> type)</code></div> |
123 | 125 | <div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> |
124 | | -<div class="block">Get the EntityStatMap component of an entity.</div> |
| 126 | +<div class="block">Get a component from an Entity</div> |
125 | 127 | </div> |
126 | | -<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/latest/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> com.hypixel.hytale.server.core.entity.movement.MovementStatesComponent</code></div> |
127 | | -<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getMovementStatesComponent(com.hypixel.hytale.server.core.entity.Entity)" class="member-name-link">getMovementStatesComponent</a><wbr>(com.hypixel.hytale.server.core.entity.Entity entity)</code></div> |
| 128 | +<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/latest/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> com.hypixel.hytale.server.core.modules.entitystats.EntityStatMap</code></div> |
| 129 | +<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getEntityStatMap(com.hypixel.hytale.server.core.entity.LivingEntity)" class="member-name-link">getEntityStatMap</a><wbr>(com.hypixel.hytale.server.core.entity.LivingEntity entity)</code></div> |
128 | 130 | <div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> |
| 131 | +<div class="block">Get the EntityStatMap component of an entity.</div> |
| 132 | +</div> |
| 133 | +<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/latest/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> com.hypixel.hytale.server.core.entity.movement.MovementStatesComponent</code></div> |
| 134 | +<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getMovementStatesComponent(com.hypixel.hytale.server.core.entity.Entity)" class="member-name-link">getMovementStatesComponent</a><wbr>(com.hypixel.hytale.server.core.entity.Entity entity)</code></div> |
| 135 | +<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> |
129 | 136 | <div class="block">Get the MovementStatesComponent of an entity.</div> |
130 | 137 | </div> |
131 | 138 | </div> |
@@ -162,6 +169,28 @@ <h3>EntityComponentUtils</h3> |
162 | 169 | <h2>Method Details</h2> |
163 | 170 | <ul class="member-list"> |
164 | 171 | <li> |
| 172 | +<section class="detail" id="getComponent(com.hypixel.hytale.server.core.entity.Entity,com.hypixel.hytale.component.ComponentType)"> |
| 173 | +<h3>getComponent</h3> |
| 174 | +<div class="horizontal-scroll"> |
| 175 | +<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/latest/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> |
| 176 | +</span><span class="modifiers">public static</span> <span class="type-parameters"><ECS_TYPE, T extends com.hypixel.hytale.component.Component<ECS_TYPE>></span> |
| 177 | +<span class="return-type">T</span> <span class="element-name">getComponent</span><wbr><span class="parameters">(com.hypixel.hytale.server.core.entity.Entity entity, |
| 178 | + com.hypixel.hytale.component.ComponentType<ECS_TYPE,<wbr>T> type)</span></div> |
| 179 | +<div class="block">Get a component from an Entity</div> |
| 180 | +<dl class="notes"> |
| 181 | +<dt>Type Parameters:</dt> |
| 182 | +<dd><span id="getComponent(com.hypixel.hytale.server.core.entity.Entity,com.hypixel.hytale.component.ComponentType)-type-param-ECS_TYPE"><code>ECS_TYPE</code> - EntityStore Type</span></dd> |
| 183 | +<dd><span id="getComponent(com.hypixel.hytale.server.core.entity.Entity,com.hypixel.hytale.component.ComponentType)-type-param-T"><code>T</code> - Type of returned component</span></dd> |
| 184 | +<dt>Parameters:</dt> |
| 185 | +<dd><code>entity</code> - Entity to get component from</dd> |
| 186 | +<dd><code>type</code> - Component type to get</dd> |
| 187 | +<dt>Returns:</dt> |
| 188 | +<dd>Component from entity if available otherwise null</dd> |
| 189 | +</dl> |
| 190 | +</div> |
| 191 | +</section> |
| 192 | +</li> |
| 193 | +<li> |
165 | 194 | <section class="detail" id="getEntityStatMap(com.hypixel.hytale.server.core.entity.LivingEntity)"> |
166 | 195 | <h3>getEntityStatMap</h3> |
167 | 196 | <div class="horizontal-scroll"> |
|
0 commit comments