public class MinecartMemberFurnace extends MinecartMember<com.bergerkiller.bukkit.common.entity.type.CommonMinecartFurnace>
died, forcedBlockUpdate, GRAVITY_MULTIPLIER, GRAVITY_MULTIPLIER_RAILED, group, ignoreDie, MAXIMUM_DAMAGE_SUSTAINED, soundLoop, ticked, vertToSlope
Constructor and Description |
---|
MinecartMemberFurnace() |
Modifier and Type | Method and Description |
---|---|
void |
addFuelTicks(int fuelTicks) |
boolean |
getCoalFromNeighbours() |
void |
onAttached() |
boolean |
onCoalUsed()
Checks if new coal can be used
|
boolean |
onInteractBy(org.bukkit.entity.HumanEntity human,
com.bergerkiller.bukkit.common.wrappers.HumanHand hand) |
void |
onItemSet(int index,
org.bukkit.inventory.ItemStack item) |
void |
onPhysicsPostMove()
Moves the minecart and performs post-movement logic such as events,
onBlockChanged and other (rail) logic Physics stage: 4
|
void |
onPhysicsPreMove()
Executes the velocity and pre-movement calculations, which handles logic
prior to actual movement occurs
Physics stage: 3 |
void |
onTrainSaved(com.bergerkiller.bukkit.common.config.ConfigurationNode data)
Called when a train is being saved, allowing this Minecart Member to include
additional data specific to the entity itself.
|
void |
onTrainSpawned(com.bergerkiller.bukkit.common.config.ConfigurationNode data)
Called when a train is being spawned, allowing this Minecart Member to load
additional data specific to the entity itself.
|
calcPostMovePosition, calcSubBlockDistance, calculateGapAndDirection, calculateModelDistance, calculateOrientation, calculateSpeedFactor, canCollisionEnter, canTakeDamage, checkMissing, clearGroup, connect, discoverRail, doPostMoveLogic, eject, eject, eject, findAttachment, flipOrientation, getActions, getAvailableSeatCount, getBlock, getBlock, getBlock, getBlockPos, getBlockRelative, getDirection, getDirectionDifference, getDirectionDifference, getDirectionFrom, getDirectionTo, getForce, getForwardForce, getGroundBlock, getGroup, getHitBox, getIndex, getLastBlock, getLastRailLogic, getLimitedVelocity, getLocalizedName, getMaximumBlockDistance, getMaximumDistance, getNeighbour, getNeightbours, getOrientation, getOrientationForward, getPassengerPosition, getPlayerInventory, getPreferredDistance, getProperties, getRailLogic, getRails, getRailTracker, getRailType, getRealSpeed, getRealSpeedLimited, getRoll, getSeatCount, getSignTracker, getWheels, getWorld, hasBlockChanged, ignoreCollision, ignoreNextDie, invalidateDirection, isCollisionIgnored, isCollisionIgnored, isDerailed, isDirectionTo, isFlying, isFollowingOnTrack, isHeadingTo, isHeadingTo, isHeadingTo, isHeadingTo, isHeadingTo, isIgnoringCollisions, isInChunk, isInChunk, isInteractable, isModelIntersectingWith, isMovementControlled, isMoving, isMovingHorizontally, isMovingVertically, isMovingVerticalOnly, isNearOf, isOnSlope, isOnVertical, isOrientationInverted, isPassengerSuffocating, isPlayerTakable, isSingle, isTrackConnected, isTurned, isUnloaded, isYawInverted, limitSpeed, makeTrackMap, onActivate, onActivatorUpdate, onBlockChange, onBlockCollision, onDamage, onDetached, onDie, onEntityCollision, onModelChanged, onModelNodeChanged, onPhysicsStart, onPropertiesChanged, onTick, parseSet, playAnimationFor, playLinkEffect, playLinkEffect, playNamedAnimation, playNamedAnimation, playNamedAnimationFor, push, pushSideways, pushSideways, resetCollisionEnter, respawn, setForwardForce, setGroup, setIgnoreCollisions, setOrientation, setRoll, setRotationWrap, setUnloaded, snapToPath, stop, stop, updateDirection, updateManualMovement, updateUnloaded, verifyPreMovePosition
public void onAttached()
onAttached
in class MinecartMember<com.bergerkiller.bukkit.common.entity.type.CommonMinecartFurnace>
public boolean onInteractBy(org.bukkit.entity.HumanEntity human, com.bergerkiller.bukkit.common.wrappers.HumanHand hand)
onInteractBy
in class com.bergerkiller.bukkit.common.controller.EntityController<com.bergerkiller.bukkit.common.entity.type.CommonMinecartFurnace>
public void addFuelTicks(int fuelTicks)
public boolean onCoalUsed()
public boolean getCoalFromNeighbours()
public void onPhysicsPostMove() throws MemberMissingException, GroupUnloadedException
MinecartMember
onPhysicsPostMove
in class MinecartMember<com.bergerkiller.bukkit.common.entity.type.CommonMinecartFurnace>
MemberMissingException
- - thrown when the minecart is dead or diesGroupUnloadedException
- - thrown when the group is no longer loadedpublic void onPhysicsPreMove()
MinecartMember
onPhysicsPreMove
in class MinecartMember<com.bergerkiller.bukkit.common.entity.type.CommonMinecartFurnace>
public void onItemSet(int index, org.bukkit.inventory.ItemStack item)
onItemSet
in class com.bergerkiller.bukkit.common.controller.EntityController<com.bergerkiller.bukkit.common.entity.type.CommonMinecartFurnace>
public void onTrainSaved(com.bergerkiller.bukkit.common.config.ConfigurationNode data)
MinecartMember
onTrainSaved
in class MinecartMember<com.bergerkiller.bukkit.common.entity.type.CommonMinecartFurnace>
public void onTrainSpawned(com.bergerkiller.bukkit.common.config.ConfigurationNode data)
MinecartMember
onTrainSpawned
in class MinecartMember<com.bergerkiller.bukkit.common.entity.type.CommonMinecartFurnace>
Copyright © 2019. All rights reserved.