😍
HCore wiki
  • Starting
    • Initializing
  • Configs
    • Configs
  • Entities
    • NPC
    • Particles
    • Renderers
    • Holograms
  • Messaging
    • Command System
    • Scoreboards
    • Spam System
    • Messagings
    • Packets
  • Others
    • ItemBuilder
    • World Borders
    • Event Subscriber
    • Inventories
    • Database Management
Powered by GitBook
On this page
  • Example
  • HWorldBorder#setCenter(Location)
  • HWorldBorder#setColor(HBorderColor)
  • HWorldBorder#setWarningDistance(int)
  • HWorldBorder#setWarningTime(int)
  • HWorldBorder#setDamageAmout(double)
  • HWorldBorder#setDamageBuffer(double)
  • HWorldBorder#showAll()
  1. Others

World Borders

hCore allows you to easily add world borders for player.

Example

This will create world border for provided player with blue color.

HWorldBorder myBorder = HCore.createBorder(player.getLocation(), 20, 0, 0, 0, 0, HBorderColor.BLUE); // creates a blue worldborder at player's location
myBorder.show(player); //shows world border for player
System.out.println(myBorder.getCenter()); // prints the center location of border

HWorldBorder#setCenter(Location)

Sets center location of border.

HWorldBorder#setColor(HBorderColor)

Sets border's color to provided.

HWorldBorder#setWarningDistance(int)

Sets warning distance of worldBorder.

HWorldBorder#setWarningTime(int)

How much time border will warn player about damage.

HWorldBorder#setDamageAmout(double)

Sets border's damage amout.

HWorldBorder#setDamageBuffer(double)

Sets border's damage buffer.

HWorldBorder#showAll()

Shows world border to all players

PreviousItemBuilderNextEvent Subscriber

Last updated 2 years ago