Commits

md_5 authored d4c3dd53a89
SPIGOT-204: Add way to set block type without using IDs or updating physics.
No tags

src/main/java/org/bukkit/block/Block.java

Modified
179 179 @Deprecated
180 180 void setData(byte data, boolean applyPhysics);
181 181
182 182 /**
183 183 * Sets the type of this block
184 184 *
185 185 * @param type Material to change this block to
186 186 */
187 187 void setType(Material type);
188 188
189 + /**
190 + * Sets the type of this block
191 + *
192 + * @param type Material to change this block to
193 + * @param applyPhysics False to cancel physics on the changed block.
194 + */
195 + void setType(Material type, boolean applyPhysics);
196 +
189 197 /**
190 198 * Sets the type-id of this block
191 199 *
192 200 * @param type Type-Id to change this block to
193 201 * @return whether the block was changed
194 202 * @deprecated Magic value
195 203 */
196 204 @Deprecated
197 205 boolean setTypeId(int type);
198 206

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut